Skip to content

Commit 7299c89

Browse files
committed
[ISSUE #40]校订流式编程-中间操作
1 parent ec90073 commit 7299c89

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/book/14-Streams.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -837,15 +837,15 @@ public class Prime {
837837

838838
`rangeClosed() ` 包含了上限值。如果不能整除,即余数不等于 0,则 `noneMatch()` 操作返回 ture,如果出现任何等于 0 的则返回 false。 `noneMatch()` 操作在第一次失败之后就会退出,而不是进行全部尝试。
839839

840-
### 应用操作到所有元素
840+
### 应用函数到元素
841841

842-
`map(Function) ``Function` 操作应用在输入流的每一个元素中,并将返回值传递到输出流中。
842+
`map(Function) `将函数操作应用在输入流的每一个元素中,并将返回值传递到输出流中。
843843

844-
`mapToInt(ToIntFunction)`:操作同上,但结果是 `IntStream`
844+
`mapToInt(ToIntFunction)`:操作同上,但结果是 **IntStream**
845845

846-
`mapToLong(ToLongFunction)`:操作同上,但结果是 `LongStream`
846+
`mapToLong(ToLongFunction)`:操作同上,但结果是 **LongStream**
847847

848-
`mapToDouble(ToDoubleFunction)` : 操作同上,但结果是 `DoubleStream`
848+
`mapToDouble(ToDoubleFunction)` : 操作同上,但结果是 **DoubleStream**
849849

850850
在这里,我们使用 `map()` 映射多种函数到一个字符串流中:
851851

0 commit comments

Comments
 (0)