Skip to content

Instantly share code, notes, and snippets.

@Chris927
Created December 31, 2019 06:58
Show Gist options
  • Save Chris927/ee3e832407f78622d096c62397045abc to your computer and use it in GitHub Desktop.
Save Chris927/ee3e832407f78622d096c62397045abc to your computer and use it in GitHub Desktop.
Dart lang, foolin around
// just foolin around
List<int> f() {
return List.generate(20, (i) => i * i);
}
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}, $i');
}
print('List: ${f().join(', ')}');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment