steppedIota

An alternate, 1-dimensional version of iota (and different API).

pure
steppedIota
(
E
)
(
size_t num
,,
E start = 0
)

Parameters

num size_t

number of values to return

step E

value between indices

start E

value of the first index

Return Value

Type: auto

1-dimensional slice composed of indices

Examples

assert(steppedIota!double(4, 0.3, 2.0) == [2.0, 2.3, 2.6, 2.9]);

Meta