Skip to content

ilyakharlamov/dart-range

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  }
}

About

Dart version of python range() and xrange().

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%