Function ::std::iter::range

Overview
fn range(start: i64, end: i64) -> Iterator

Produce an iterator which starts at the range start and ends at the value end (exclusive).

Examples

use std::iter::range;

assert!(range(0, 3).next().is_some());
assert_eq!(range(0, 3).collect::<Vec>(), [0, 1, 2]);