 }
 
 incrementUnfunctional()
-print(a) // a = 1
+print(a)
 
 /* This is a functional function */
 

    languages[index] = randomElement(newLanguages)
}

// Functional

let randomLanguages = languages.map { _ in randomElement(newLanguages) }

print(randomLanguages)

}

a = incrementFunctional(a)
print(a)

 ///////////////////////////////////////////////////////

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


/* Map - Example 1 */

