I have an issue almost exactly the one posted here, but my issue is relegated to a barebones Rhino implementation of JS, so I'm left without tools like Numpy.
I have an array which looks like this (extending an arbitrary amount down):
[[ A, B, 1, 2, α, β],
[ C, D, 3, 4, θ, μ],
[ E, F, 5, 6, ω, ξ]
which I'd like to slice/splice horizontally into a 'chunkified' array X elements thick; let's say I need chunks 2 elements thick:
[[[A, B], [[1, 2], [[α, β],
[C, D], [3, 4], [θ, μ],
[E, F]], [5, 6]], [ω, ξ]]]
how might I go about this?