#Swift Intro Video
###Constants and Vars
- Swift prefers immutability
- you can use unicode characters for var names 
####Type inference no need to specify type
- collection of characters, can use a for in loop to iterate over characters
- can combine strings and characters
####Building Complex Strings
- interpolations
- can work with any type, don't have to be objects or clas types
- Collections are typed collections. Can provide a type annotation to specify only accepts strings.
##Loops ###Create and modify collections ####For-in loop
- characters, strings, ranges 11:51, arrays, dictionaries
- Nothing is represented by
nil
- optional parens
- braces required
- must supply
defaultcase. either acasefor every value or adefault.
###Tuples
-
usefule when u want to pass around multiple values simply like when a function returns multiple values
-
for each iteration of the dict you get a tuple pair
####Another wayt o get values:
##Closures
- no need to specify types
- functions are named closures in Swift
- no header files
- no base class required, can use NSObject for ex if you want
- would be
letinstead ofvarif you don't want to change it later on - stored and computed properties 30:52
- computed properties, even read-only ones do need to be defined as variables
No more alloc!
- won't need an initializer if you had supplied a default value
####Class initialization
- see intermediate talk
####Adding Methods to Functions
left off at 36:10














