Reading List

Swift Pitch: Borrowing Sequence from Michael Tsai RSS feed.

Swift Pitch: Borrowing Sequence

Ben Cohen: A sequence provides access to its elements through an Iterator, and an iterator’s next() operation returns an Element?. For a sequence of noncopyable elements, this operation could only be implemented by consuming the elements of the iterated sequence, with the for loop taking ownership of the elements individually. While consuming iteration is sometimes […]