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

Add flatten #54

Open
creade opened this issue May 7, 2012 · 1 comment
Open

Add flatten #54

creade opened this issue May 7, 2012 · 1 comment
Milestone

Comments

@creade
Copy link
Contributor

creade commented May 7, 2012

From "THAT OTHER FUNCTIONAL LIBRARY":

"Recursively descends through nested Collections and create a flat Collection of all of the leaves."

@sghill
Copy link
Contributor

sghill commented Jul 25, 2012

The difficulty here is around type-safety. It's easy if we just return collection of Object, but that doesn't follow suit with the rest of the library. We could also cast to a specific type, but that leaves the door open for a ClassCastException.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants