Sequence.split is eager, but if you are splitting a collection, it should be possible to do it lazily. This could be done via an extension to LazyCollectionProtocol so you could write "a.b.c".lazy.split(separator: ".").
The text was updated successfully, but these errors were encountered:
I came up with the idea to help break up a Mac-specific collection (NSData), then for play. I wasn't thinking of it as a Swift standard library contribution. I don't know what to do here because I'm distracted by another Swift idea (which happens to me a lot). So, if you want to work on chunking (and/or splitting) yourself, go ahead.