Swift ➤ Playgrounds in Xcode ➤ Type Inference ➤ Swift likes constants (let) ➤ Swift Arrays (collection type) ➤ Swift Tuples ➤ High Order Functions and Closures ➤ sort(_:) filter(_:) reduce(_: combine:) map(_:) 2
16, 32, or 64 bits) UInt Use for positive numbers. (8, 16, 32, or 64 bits) Float For 32-bit floating-point numbers. Double For 64-bit floating-point numbers. (Default) String For textual data. Bool The values are true or false. 3
that take other functions as arguments Closures - Nameless in-place functions The expression syntax for closures is: { (parameters) -> return type in statements } Trailing Closure - A closure written following the calling function’s round brackets 11
Resources - https://developer.apple.com/swift/resources/ Get The Swift Programming Language in ePub format. https://swift.org/documentation/ Apple’s site for Open Source Swift - https://swift.org Swift in 24 Hours, Sams Teach Yourself (2nd Edition) By B.J. Miller 15