File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 20
20
///
21
21
/// let doubled = [1, 2, 3].lazy.map { $0 * 2 }
22
22
///
23
- /// Each time an element of the lazy sequence `doubled` is accessed, an element
24
- /// of the underlying array is accessed and transformed by the closure .
23
+ /// Each time an element of the lazy sequence `doubled` is accessed, the
24
+ /// closure accesses and transforms an element of the underlying array .
25
25
///
26
26
/// Sequence operations that take closure arguments, such as `map(_:)` and
27
27
/// `filter(_:)`, are normally eager: They use the closure immediately and
124
124
/// }
125
125
/// }
126
126
///
127
- /// Don't actually use `map` for this purpose, however, since it creates
127
+ /// Don't actually use `map` for this purpose, however, because it creates
128
128
/// and discards the resulting array. Instead, use `reduce` for summing
129
129
/// operations, or `forEach` or a `for`-`in` loop for operations with side
130
130
/// effects.
You can’t perform that action at this time.
0 commit comments