range functions

Analogous to numpy's `arange`.