Last active
November 6, 2018 21:55
-
-
Save lancep/71fb3b4d703d4d2d03b30b4bf1df7b88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var headAndTail: (head: Element, tail: SubSequence)? { | |
var iter = makeIterator() | |
guard let head = iter.next() else { return nil } | |
let tail = dropFirst(0) | |
return (head, tail) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment