Created
December 31, 2019 06:58
-
-
Save Chris927/ee3e832407f78622d096c62397045abc to your computer and use it in GitHub Desktop.
Dart lang, foolin around
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
// 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