Aug. 27, 2010
1:10 p.m.
flatCollect: ? Stef On Aug 27, 2010, at 2:06 PM, Simon Denier wrote:
Hi there
A question to test your sagacity :)
I'm looking for a method which would flatten a collection, regardless of whether the collection is already flat or not.
that is: #((1 2 3) (4 5 6)) flatten --> #(1 2 3 4 5 6)
#(1 2 3 4 5 6) flatten --> #(1 2 3 4 5 6)
#((1 2 3) 4 5 6) flatten --> #(1 2 3 4 5 6)
Any idea about the best implementation for this?
-- Simon
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users