repl.txt (681B)
1 2 {{alias}}( start, stop[, increment] ) 3 Generates a linearly spaced numeric array using a provided increment. 4 5 If an `increment` is not provided, the default `increment` is `1`. 6 7 The output array is guaranteed to include the `start` value but does not 8 include the `stop` value. 9 10 Parameters 11 ---------- 12 start: number 13 First array value. 14 15 stop: number 16 Array element bound. 17 18 increment: number (optional) 19 Increment. Default: `1`. 20 21 Returns 22 ------- 23 arr: Array 24 Linearly spaced numeric array. 25 26 Examples 27 -------- 28 > var arr = {{alias}}( 0, 11, 2 ) 29 [ 0, 2, 4, 6, 8, 10 ] 30 31 See Also 32 -------- 33