Skip to content

Instantly share code, notes, and snippets.

@jebright
Last active September 23, 2018 15:50
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 jebright/8b5cfbc69a4badcba949ce22be08a219 to your computer and use it in GitHub Desktop.
Save jebright/8b5cfbc69a4badcba949ce22be08a219 to your computer and use it in GitHub Desktop.
Dart Fundamentals - Lists - foreach
void main() {
List<String> names = ["Joe", "Frankie", "Tom"];
names.forEach((n) =>
print('Hello Mr. ${n}'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment