I added the array/split method to split an array into segments. The use case for this that I had was splitting an array of data into two columns to feed to a template. This can split the array into any number of segments, will preserve the original order, and will make the first segments one item longer if it is an uneven split.
I added the
array/split
method to split an array into segments. The use case for this that I had was splitting an array of data into two columns to feed to a template. This can split the array into any number of segments, will preserve the original order, and will make the first segments one item longer if it is an uneven split.