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

Iterator#flat_map returns an iterator #3766

Merged
merged 1 commit into from Dec 26, 2016

Conversation

makenowjust
Copy link
Contributor

@makenowjust makenowjust commented Dec 24, 2016

And, Enumerable#flat_map flatten Iterator like Array#flatten now.

In Ruby, Enumrator::Lazy#flat_map returns Enumerator::Lazy, so I think it is good that Iterator#flat_map returns a iterator like Ruby.

and Enumerable#flat_map and Iterator#flat_map flattens Iterator,
like Array#flatten.
@asterite
Copy link
Member

This is excellent, thank you!! 💙

@asterite asterite merged commit 3a81780 into crystal-lang:master Dec 26, 2016
@asterite asterite added this to the 0.20.4 milestone Dec 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants