File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -837,15 +837,15 @@ public class Prime {
837
837
838
838
` rangeClosed() ` 包含了上限值。如果不能整除,即余数不等于 0,则 ` noneMatch() ` 操作返回 ture,如果出现任何等于 0 的则返回 false。 ` noneMatch() ` 操作在第一次失败之后就会退出,而不是进行全部尝试。
839
839
840
- ### 应用操作到所有元素
840
+ ### 应用函数到元素
841
841
842
- ` map(Function) ` :将 ` Function ` 操作应用在输入流的每一个元素中 ,并将返回值传递到输出流中。
842
+ ` map(Function) ` :将函数操作应用在输入流的每一个元素中 ,并将返回值传递到输出流中。
843
843
844
- ` mapToInt(ToIntFunction) ` :操作同上,但结果是 ` IntStream ` 。
844
+ ` mapToInt(ToIntFunction) ` :操作同上,但结果是 ** IntStream** 。
845
845
846
- ` mapToLong(ToLongFunction) ` :操作同上,但结果是 ` LongStream ` 。
846
+ ` mapToLong(ToLongFunction) ` :操作同上,但结果是 ** LongStream** 。
847
847
848
- ` mapToDouble(ToDoubleFunction) ` : 操作同上,但结果是 ` DoubleStream ` 。
848
+ ` mapToDouble(ToDoubleFunction) ` : 操作同上,但结果是 ** DoubleStream** 。
849
849
850
850
在这里,我们使用 ` map() ` 映射多种函数到一个字符串流中:
851
851
You can’t perform that action at this time.
0 commit comments