Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer Enumerable#flat_map over .map.flatten chain #378

merged 1 commit into from Jul 3, 2021


Copy link

@ashmaroli ashmaroli commented Feb 3, 2020

#flat_map is generally faster as result of not having to create an intermediate array and traverse one array lesser.


@sporkmonger sporkmonger changed the base branch from master to main Jul 3, 2021
@sporkmonger sporkmonger self-requested a review Jul 3, 2021
@sporkmonger sporkmonger merged commit e9c76b8 into sporkmonger:main Jul 3, 2021
2 of 3 checks passed
@ashmaroli ashmaroli deleted the flat-map branch Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants