3 ms·
Quick note about your functional examples - there's already a built-in version of `take` called `prefix` available on all Sequence types.
by jayrhynas 7y ago
Quick note about your functional examples - there's already a built-in version of `take` called `prefix` available on all Sequence types.
- melling 7y agoThanks. There’s also a prefix(while:) that appears to be takeWhile(), which I also needed. https://developer.apple.com/documentation/swift/sequence/3128810-prefix https://developer.apple.com/documentation/swift/sequence/312...