We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
举个例子:
String[] s = {"1.0", "2.0", "3.0", "4.0", "5.0"}; Double ans = Stream.of(s) .map(Double::valueOf) .filter(d -> d > 2) .sorted(Comparator.reverseOrder()) .limit(2) .reduce(Double::sum) .orElse(0d);
倒序执行第一个Intermediate Operation 时,也就是limit,如何保证不会获取"1.0", "2.0"?
The text was updated successfully, but these errors were encountered:
只是倒序遍历组装成一个sink,执行的时候还是正序执行的。
Sorry, something went wrong.
No branches or pull requests
举个例子:
倒序执行第一个Intermediate Operation 时,也就是limit,如何保证不会获取"1.0", "2.0"?
The text was updated successfully, but these errors were encountered: