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

#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 July 3, 2021 04:21
@sporkmonger sporkmonger self-requested a review July 3, 2021 04:22
@sporkmonger sporkmonger merged commit e9c76b8 into sporkmonger:main Jul 3, 2021
@ashmaroli ashmaroli deleted the flat-map branch August 26, 2021 08:59
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