The primitive i.creates a list of integers:
i. 10
0 1 2 3 4 5 6 7 8 9
If I want to create several short lists in a row, I do this:
;i."0 each [ 2 3 4
0 1 0 1 2 0 1 2 3
(the result I want)
Boxing (this each) is a crutch here, because without it it i."0creates a matrix.
i."0 [ 2 3 4
0 1 0 0
0 1 2 0
0 1 2 3
(I do not need the result)
Is there a better way to not i."0format the output in a matrix, but an array?
source
share