Skip to content

Instantly share code, notes, and snippets.

@kwalrath
Created May 3, 2018 23:48
Show Gist options
  • Save kwalrath/9bcb7dba6dca46e2a9dbfb300298461e to your computer and use it in GitHub Desktop.
Save kwalrath/9bcb7dba6dca46e2a9dbfb300298461e to your computer and use it in GitHub Desktop.
Java-to-Dart codelab: Scream example - imperative code
String scream(int length) => "A${'a' * length}h!";
main() {
final values = [1, 2, 3, 5, 10, 50];
for (var length in values) {
print(scream(length));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment