Category Archives: Swift

Swift Standard Libraries: Sequence and Collection Functions

In the last post in this series, I took at look at the protocols that Swift uses to define generators, sequences and collections. In this post I am going to present examples of using the Standard Library Functions that operate … Continue reading

Posted in Code Snippets, Swift, Swift Standard Library | Leave a comment

Swift Standard Library: Generators, Sequences and Collections

A large part of the Swift Standard Library is concerned with Generators, Sequences and Collections and functions that operate on them, so it’s pretty important to have a good understanding of them. Generators A Generator is anything that conforms to … Continue reading

Posted in Swift, Swift Standard Library, Tutorial | Tagged , , , , | Leave a comment

Swift Standard Library: transcode

Swift Standard Library: transcode The transcode function lets to convert strings from one Unicode encoding to another, for example UTF16 to UTF8. The definition you get when you command-click on the function is quite intimidating:

It is also incorrect; … Continue reading

Posted in Swift, Swift Standard Library | Tagged , , , , , , | 1 Comment