reducing arrays in swift 3
print([0, 1, 2].reduce(1, {(a:Int, b:Int) in a + b})) //4 print([4, 4, 4, 4].reduce(1, {(a:Int, b:Int) in a * b})) //256