Commits

Kevin Ballard committed 6ae85cea26c
[Stdlib] Optimize CollectionType.first For lazy collections, `isEmpty` and `startIndex` may be O(N) operations. The old implementation ended up being potentially O(2N) instead of O(1). In particular, accessing `col.lazy.filter(pred).first` would evaluate the predicate on elements twice, once to determine the result of `isEmpty` and once to determine `startIndex`.