Created
July 4, 2017 07:50
-
-
Save tranhieutt/f517747d204207fc8be67a9cbb9f66e8 to your computer and use it in GitHub Desktop.
[Swift] - map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapDetailSquare = values.map ({ (value:Double) -> Double in | |
return value * value | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment