Last active
September 12, 2016 23:43
-
-
Save Sfshaza/d1c5d3124c8abf2d58f9b98936339232 to your computer and use it in GitHub Desktop.
anonymous functions
This file contains hidden or 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
main() { | |
var list = ['apples', 'oranges', 'grapes', 'bananas', 'plums']; | |
list.forEach((i) { | |
print(list.indexOf(i).toString() + ': ' + i); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment