Categories
- Code (3)
- Code Snippets (12)
- git (1)
- Hardware (1)
- News (5)
- Objective-C (6)
- Precompiled (4)
- Programming (1)
- Review (1)
- Swift (9)
- Swift Standard Library (3)
- Tips (3)
- Tutorial (22)
- Uncategorized (3)
- WWDC (1)
-
Recent Posts
Meta
-
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 {swift}Generators{/swift}, {swift}Sequences{/swift} and {swift}Collections{/swift} and functions that operate on them, so it’s pretty important to have a good understanding of them. Generators A {swift}Generator{/swift} is anything that conforms to … Continue reading
Posted in Swift, Swift Standard Library, Tutorial
Tagged CollectionType, GeneratorOf, GeneratorType, reverse, SequenceType
Leave a comment
Swift Standard Library: transcode
Swift Standard Library: transcode The {swift}transcode{/swift} function lets to convert strings from one Unicode encoding to another, for example {swift}UTF16{/swift} to {swift}UTF8{/swift}. The definition you get when you command-click on the function is quite intimidating: /* func transcode< Input : … Continue reading
Posted in Swift, Swift Standard Library
Tagged SinkType, transcode, Unicode, UnicodeCodecType, UTF16, UTF32, UTF8
1 Comment