Stephane Ducasse-3 wrote
> #(1 2 3 4 1 2 3 5 6 ) consumeUntil: [:each | each = 4)
>>>> {#(1 2 3 4) . #( 1 2 3 5 6 )}
The shortest kernel thing I could come up with took two steps: `{ #(1 2 3 4
1 2 3 5 6 ) copyUpThrough: 4.
#(1 2 3 4 1 2 3 5 6 ) copyAfter: 4 }`. The splitting messages seem to all
eat the separator.
-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html
