Splitting a Swift Sequence into head and tail – Ole Begemann
oleb.netWriting a generic function for destructuring a Sequence into a head and a tail that preserves the sequence’s subsequence type and works for single-pass sequences is a little tricky. Ole Begemann shows how it works.
Read more...