Sept. 29, 2012
10:22 a.m.
On Thu, Sep 27, 2012 at 5:49 PM, sergio_101 <sergio.rrd@gmail.com> wrote:
for whatever reason, i couldn't seem to find that in SequenceableCollection. but after your posts, i did a search, and it was there.. my bad..
for these kinds of queries, never forget to check streams: aCollection asStream next: 10 In this case you can use #first: as others stated, but in many other cases streams will be the only way to solve your problem. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry