> One rationale I heard (I think from Ben Cohen) for why 'first' is not defined > on Collection is that Sequences can be single-pass, and it would feel weird > for a seemingly innocuous property like 'first' to have side effects.
This should be "not defined on Sequence", of course. Apologies for making the same mistake I was pointing out.
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution