Re: can gather/take have multiple bins

2004-11-25 Thread Rod Adams
Dave Whipp wrote: gather @bin1, @bin2 -> $bin1, $bin2{ for @words { $bin1.take if /^^a/; $bin2.take if /e$$/; } } Juerd point out (private email) that my example doesn't really make any sense in that it doesn't do anything over and above s/take/push. However, I think the concept of mul

Re: can gather/take have multiple bins

2004-11-25 Thread Michele Dondi
On Wed, 24 Nov 2004, Dave Whipp wrote: Juerd point out (private email) that my example doesn't really make any sense in that it doesn't do anything over and above s/take/push. However, I think the concept of multiple bins could still be useful. My What about an adverb? Hope not to say anything utte

Re: can gather/take have multiple bins

2004-11-24 Thread Dave Whipp
> gather @bin1, @bin2 -> $bin1, $bin2{ > for @words { > $bin1.take if /^^a/; > $bin2.take if /e$$/; > } > } Juerd point out (private email) that my example doesn't really make any sense in that it doesn't do anything over and above s/take/push. However, I think the concept of multiple

can gather/take have multiple bins

2004-11-24 Thread Dave Whipp
I was wondering just how much once can do with gather/take: is it possible to have multiple bins? @words = << abc def ade afe ade agc >>; gather @bin1, @bin2 -> $bin1, $bin2{ for @words { $bin1.take if /^^a/; $bin2.take if /e$$/; } } ?