Dart synchronous iterable

void main() { var s = num(7); print("${s}"); } Iterable num(n) sync*{ var k = 0; while(k < n ) yield k++; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.