Created
July 4, 2017 07:53
-
-
Save tranhieutt/07b9d66514c052b03cf7dfa451046755 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 square = values.map {value in value * value} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment