Created
February 27, 2019 15:10
-
-
Save ruan65/fd6f60da2a1849167c0a76e7192733d5 to your computer and use it in GitHub Desktop.
Dart helpers
This file contains hidden or 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
Iterable<int> range({int from = 0, int to}) sync* { | |
for (int i = from; i < to; ++i) { | |
yield i; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment