SequenceType and CollectionType have a cool property named lazy. lazy is defined by Apple as: “A sequence…
SequenceType
CollectionType
lazy
Early exits help reduce nesting and clearly signal what the desired and possible outcomes are. The important…