File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 29
29
/// library explicit permission to store the closure and the sequence
30
30
/// in the result, and defer computation until it is needed.
31
31
///
32
+ /// ## Adding New Lazy Operations
33
+ ///
32
34
/// To add a new lazy sequence operation, extend this protocol with
33
35
/// a method that returns a lazy wrapper that itself conforms to
34
36
/// `LazySequenceProtocol`. For example, an eager `scan(_:_:)`
123
125
/// }
124
126
///
125
127
/// Don't actually use `map` for this purpose, however, since it creates
126
- /// and discards a resulting array. Instead, use `reduce` for summing
128
+ /// and discards the resulting array. Instead, use `reduce` for summing
127
129
/// operations, or `forEach` or a `for`-`in` loop for operations with side
128
130
/// effects.
129
131
public protocol LazySequenceProtocol : Sequence {
You can’t perform that action at this time.
0 commit comments