3 ms·
Worth comparing to Swift’s LazySequenceProtocol [0]. Various Sequences have a .lazy property that returns some LazySequenceProtocol<Element>, so you can opt in
by wwalexander 2y ago
Worth comparing to Swift’s LazySequenceProtocol [0]. Various Sequences have a .lazy property that returns some LazySequenceProtocol<Element>, so you can opt in to this sort of fluent-style method chaining where it makes sense.
[0] https://developer.apple.com/documentation/swift/lazysequenceprotocol https://developer.apple.com/documentation/swift/lazysequence...