Atom - œs
- Split (# Chunks)
Tags: miscellaneous , array , number , vectorize
Arity: dyadic
This atom is dyadic, which means it takes two arguments.
Functionality
Return x
sliced into y
chunks of similar length.
Details
Vectorizes over the right argument. If the length of x
is not divisible by y
, extra elements go into the first len(x) % y
chunks. Numbers are automatically cast to a range on the left. For example, 11 œs 3
returns [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11]]
.