Skip to main content

range

Function range 

Source
pub fn range(start: &Value, end: &Value) -> DogeResult
Expand description

range(start, end) — the Ints start, start+1, …, end-1 as an eager List. When end <= start the List is naturally empty. Both arguments must be Int; anything else is a catchable type error. A bound too large to be a machine index is a catchable value error (the List could never fit in memory anyway). The one-argument Doge form range(n) is compiled as range(0, n), so the runtime has one signature.