Skip to content

Instantly share code, notes, and snippets.

@marti1125
Created January 21, 2019 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marti1125/0158c8e9152595d86a7b3409b6f25863 to your computer and use it in GitHub Desktop.
Save marti1125/0158c8e9152595d86a7b3409b6f25863 to your computer and use it in GitHub Desktop.
imperative
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