 let squares = [0, 1, 2, 3, 4].map { x in x * x }
 
 print(squares)
+
 
 /* Map - Example 2 */
 

}

a = incrementFunctional(a)
print(a) // a = 1


/*** Don’t iterate over lists. Use map and reduce. ***/

/* Map - Example 1 */


import UIKit

/*** What is functional programming? ***/
