3 ms·
That's not actually equivalent. The initial version they included produces: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 2, 4, 6, 8, 10, 1
by lolinder 2y ago
That's not actually equivalent. The initial version they included produces:
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18 ...]
Whereas yours is just:
[0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100]