Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 496 Bytes

README.md

File metadata and controls

22 lines (20 loc) · 496 Bytes

Compatibility with the latest Dart release: Build Status

Usage:

import "package:range/range.dart";

main() {
  for (int i in range(3)) {
    print (i); //0,1,2
  }
  for (int i in range(1,5)) {
    print (i); //1,2,3,4
  }
  for (int i in range(0, 8, 2)) {
    print (i); //0,2,4,6
  }
  for (int i in range(0, 10, 3)) {
    print (i); //0,3,6,9
  }
}