Created
June 30, 2020 16:33
-
-
Save DevKhalyd/147db1d587f45e2f3f59d11ebfad7997 to your computer and use it in GitHub Desktop.
Map Example
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
//With Map function the Iterable can be changed to another type or another value | |
var numbersByTwo = [1, -2, 3, 42].map((number) => number * 2); | |
print('Numbers: $numbersByTwo.'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment