It is, indeed. Doru
On Sun, Mar 22, 2015 at 10:05 PM, Sven Van Caekenberghe <s...@stfx.eu> wrote: > > > On 22 Mar 2015, at 21:44, Denis Kudriashov <dionisi...@gmail.com> wrote: > > > > Hi > > > > It is another perfect task for XStreams: > > > > r := #('a12' 'b12' 'a13' 'a14' 'c23' 'a16') reading selecting: [:each | > each first = $a]. > > r get > a12 > > r get > a13 > > Beautiful ! > > Thx Denis. > > > 2015-03-22 20:47 GMT+03:00 stepharo <steph...@free.fr>: > > Hi > > > > I need a collection that does the following: > > > > col := #('a12' 'b12' 'a13' 'a14' 'c23' 'a16') asMyNewCollection. > > col findFirst: [:each | each first = $a] > > > a12 > > col findFirst: [:each | each first = $a] > > > a13 > > > > Do you know a collection that would work? > > So I have the impression that such behavoir could be defined with a kind > of methods wrapper. > > > > Stef > > > > > > > > > -- www.tudorgirba.com "Every thing has its own flow"