On Fri, 23 Jul 2004, Brent 'Dax' Royal-Gordon wrote: > Those blocks would be a syntax error; the appropriate way to do that > would be to refer to the operator by its proper name: > > my $tot = fold 0, &infix:+, 1..10;
Well, I suspected that. The matter is I still know too few concretely about Perl6... [ashamed - slowly learning though!] > OTOH, Perl 5 already has List::Util::reduce: This has already been pointed out by another poster. As I said though, I'd like to have such a beast "in the core", for some reasonable meaning of "core" (taking into account recent discussion about the matter!) In particular I'd rather prefer not to have to C<use> yet another module for such a useful beast! > Your fold() can be trivially expressed with reduce(), IIUC. I would You UC! ;-) > hope that Perl 6 will have reduce() as well--perhaps even in a form that > doesn't require using List::Util explicitly. That's exactly what I mean, and I *fully* agree!! Michele -- [about penis-enlargement spam] Suppose you (applies to male readers only!) had taken advantage of every offer of the above type received, and all had worked as claimed. Estimate how long it would be. - Derek Holt on sci.math (slightly edited)