Highlights from my first pure swift iOS app - Swiflytics!

Swift's mysterious Builtin module

…ok maybe not that mysterious since Swift is OpenSource. Anyway, you might have noticed something like this if you cmd+click Int type in playground :

Exploring Swift Array's Implementation

An (Swift) Array is contiguous block of memory which has n number of elements of same type, represented by generic type Element. Since the memory which holds the elements is contiguous any individual element can be accessed in O(1) time.

Creating value-type generic Stack in swift with pointers and copy-on-write feature

Swift’s standard library contains all standard data structures you’d expect but it differs from other standard libraries that they’re value type and not reference type. Even their counter part like NSArray, NSMutableArray, NSDictionary etc in Objective-C’s Foundation are all reference type.