Last active
April 7, 2020 06:40
-
-
Save tailorvj/f61ccb283677aa552a8ba51a640f02d4 to your computer and use it in GitHub Desktop.
Dart: Lists are Iterable Collections
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
main() { | |
var list = ['Alpha', 'Beta', 'Gamma', 'Delta', 'Epsilon']; | |
for (var item in list){ | |
print('${list.indexOf(item)}: $item'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment