Re: [Pharo-project] flatten method is kind of broken

2012-06-19 Thread Tudor Girba
I did not open the issue. Please go ahead :) Doru On 18 Jun 2012, at 20:59, Fabrizio Perin wrote: > Sorry, > back from long weekend offline. I can port the moose extensions to the core > indeed. > Doru did you open the issue already? > > Cheers, > Fabrizio > > > 2012/6/16 Stéphane Ducasse

Re: [Pharo-project] flatten method is kind of broken

2012-06-18 Thread Fabrizio Perin
Sorry, back from long weekend offline. I can port the moose extensions to the core indeed. Doru did you open the issue already? Cheers, Fabrizio 2012/6/16 Stéphane Ducasse > doru > > can you open a bug entry and provide necessary information? > Package and tests? > > Stef > > On Jun 16, 2012,

Re: [Pharo-project] flatten method is kind of broken

2012-06-16 Thread Stéphane Ducasse
doru can you open a bug entry and provide necessary information? Package and tests? Stef On Jun 16, 2012, at 8:07 AM, Tudor Girba wrote: > Indeed. It would be great to integrate CollectionExtensions into Pharo. > > For example, we have: > #(#(1) #(2 3) #(#(4) 5) ) deepFlatten > ==> #(1 2 3

Re: [Pharo-project] flatten method is kind of broken

2012-06-15 Thread Tudor Girba
Indeed. It would be great to integrate CollectionExtensions into Pharo. For example, we have: #(#(1) #(2 3) #(#(4) 5) ) deepFlatten ==> #(1 2 3 4 5) Cheers, Doru On 15 Jun 2012, at 21:04, Stéphane Ducasse wrote: > fabrizio we should really include some of the moose extensions to pharo. > Coul

Re: [Pharo-project] flatten method is kind of broken

2012-06-15 Thread Stéphane Ducasse
fabrizio we should really include some of the moose extensions to pharo. Could you take the lead on that? Did you try gather:? Stef On Jun 15, 2012, at 10:05 AM, Fabrizio Perin wrote: > Hi, > I need to flatten a collection which does not contain other collections > necessarily. The method flat

[Pharo-project] flatten method is kind of broken

2012-06-15 Thread Fabrizio Perin
Hi, I need to flatten a collection which does not contain other collections necessarily. The method flatten doesn't really work: #(#(1 2) #(3 4)) flatten -> #(1 2 3 4) OK #(#(1) #(2 3) #(#(4) 5) ) flatten -> #(1 2 3 #(4) 5) I would have expected something like #(1 2 3 4 5) #(1 2 3) flatten -> e