In Objective-C with Cocoa a lot of tasks can be accomplished without explicit loops by using Key-Value Programming (KVP). For example, I can find the largest number in an array
You can also use the reduce function of Array
let numbers = [505,4,33,12,506,21,1,0,88] let biggest = numbers.reduce(Int.min,{max($0, $1)}) println(biggest) // prints 506
Good explanation here