We want to convert them to radians. Using themapfunction we can do that in one line only: letrads = degrees.map { Double($0) * Double.pi / 180.0 } See that the shorthand argument$0is being treated like a normal argument would have been treated. The dollar sign might look weird, but...