I'm having trouble with this:
Split: lista
li := Array new: 30.
aux := Array new: 30.
j := 0.
1 to: (lista size / 30) ceiling do: [ :i |
1 to: 30 do: [ :k | aux at: k put: (lista at: k + j) ].
j := j + 30.
li at: i put: aux ].
^ li
This is supossed to return the same list, but splitted in 30 groups of 30. I don't know what is failing, I've tried debugging it a lot of times, but it just doesn't work. At first I tried to split it at an index, but it's too hard.
Please, help me! :(