struct Range
pub struct Range<T>
Conforms to Iterator, DoubleEnded, Contains<T>, Clone.
The range a..b: the values from start up to but not including end.
A value holding its bounds. In a for head a range literal is the counted loop and no value.
Fields
pub var start: T
pub var end: T
Methods
mut fn next(): ?T
mut fn nextBack(): ?T
fn contains(x: T): bool
Returns whether x lies from start up to, not including, end.
fn clone(): Range<T>