Re:Kotlin for Data Analysis
by Larrikin on Wednesday August 28, 2024 @11:35PM
(#41387022)
Theres the zip function builtin, which I actually would have preferred
[ Parent
| on HN ]
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]