for i=0 to 10 {print(a[i])} vs for x in a {print(x)}
With functional programming it gets even better:a.filter {}.map{print}
Pseudo code, of course. I list several “functional“ examples in Swift here:
https://github.com/melling/SwiftCookBook/blob/master/functio...
Functional programming is also a higher level language. map, reduce,filter, flatten, flapMap, drop, take, zip, ...
Learn the concepts in one language and they can be used in another functional language.