I don't understand your intent. Do they group together because they have the same value or do they just get grouped into subgroups of size three or do they get grouped as runs? This works: #(1 1 1 2 2 2 3 3 3 4 4 4) groupByRuns: [ :ea | ea ] -> #(#(1 1 1) (2 2 2) (3 3 3) #(4 4 4))
On Jun 3, 2020, at 1:53 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Hi guys
do you know if we have around a method doing the following?
#(1 1 1 2 2 2 3 3 3 4 4 4) . 3 -> #(#(1 1 1) (2 2 2) (3 3 3) #(4 4 4))
it could also be another one
#(1 1 1 2 2 2 3 3 3 4 4 4) . 4 -> #(#(1 1 1) (2 2 2) (3 3 3) #(4 4 4))
S
-------------------------------------------- Stéphane Ducasse http://stephane.ducasse.free.fr <http://stephane.ducasse.free.fr/> / http://www.pharo.org <http://www.pharo.org/> 03 59 35 87 52 Assistant: Aurore Dalle FAX 03 59 57 78 50 TEL 03 59 35 86 16 S. Ducasse - Inria 40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park Plaza Villeneuve d'Ascq 59650 France