Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jayrhynas
· 6y ago · 0 comments
Quick note about your functional examples - there's already a built-in version of `take` called `prefix` available on all Sequence types.
Comments
[–]
melling
6y ago
Thanks. There’s also a prefix(while:) that appears to be takeWhile(), which I also needed.
https://developer.apple.com/documentation/swift/sequence/312...