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

array constructor lambda reference support for Stream:collect method #26

Merged
merged 1 commit into from
Feb 16, 2016

Conversation

Archinamon
Copy link

added new collect method that supports receiving array constructor reference;
added corresponding test case and back-port function;

this will look like:
int[] numbers = Stream.ofRange(1, 1000).filter(i % 5).collect(int[]::new);

…ference;

added corresponding test case and back-port function;
aNNiMON added a commit that referenced this pull request Feb 16, 2016
Array constructor lambda reference support for Stream:collect method
@aNNiMON aNNiMON merged commit 726d913 into aNNiMON:master Feb 16, 2016
@aNNiMON
Copy link
Owner

aNNiMON commented Feb 16, 2016

Merged! Thank you so much. But it would be better if method was called toArray like JDK 8 Stream API <A> A[] Stream.toArray(IntFunction<A[]> generator).

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

Successfully merging this pull request may close these issues.

2 participants