Skip to content

Instantly share code, notes, and snippets.

@DevKhalyd
Created June 30, 2020 16:33
Show Gist options
  • Save DevKhalyd/147db1d587f45e2f3f59d11ebfad7997 to your computer and use it in GitHub Desktop.
Save DevKhalyd/147db1d587f45e2f3f59d11ebfad7997 to your computer and use it in GitHub Desktop.
Map Example
//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