Created
January 21, 2019 03:30
-
-
Save marti1125/0158c8e9152595d86a7b3409b6f25863 to your computer and use it in GitHub Desktop.
imperative
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
String scream(int length) => "A${'a' * length}h!"; | |
main() { | |
final values = [1, 2, 3, 5, 10, 50]; | |
values.map(scream).forEach(print); | |
values.skip(1).take(3).map(scream).forEach(print); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment