Created
August 12, 2014 09:35
-
-
Save hofiorg/a1cfed89e92226390716 to your computer and use it in GitHub Desktop.
dart - iterate a collection with where
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() { | |
List mycollection = ['a', 'ab', 'abc', 'abcd', 'abcde']; | |
mycollection.where((c) => c.contains('d')) | |
.forEach((c) => print(c)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment