If I have a single array that has around 5000 elements.
I want 50 arrays out it having 100 elements each. And of course if there are 4923 elements, out of the 50 arrays, there will be 23 in the last one.
I know there must be some built-in function for this. But can't get around one.