On Sat, May 14, 2005 at 05:05:10PM +0200, Juerd wrote: > Jonathan Scott Duff skribis 2005-05-14 9:49 (-0500): > > Then surely $leaf = [.{}] %hash, $k1, $k2, $k3 > > is the same as $leaf = %hash .{} $k1 .{} $k2 .{} $k3 > > Then perhaps the easy way out is to make .{} $key and .[] $index valid > syntax.
Not easy on my eyes or brain :) > > $leaf_value = [$^a.{$^b}] %hash, @keys; > > Once arbitrary expressions are valid in [], its purpose is lost as a > meta-operator. You can write the above with "normal" reduce: Oh I agree. I was just trying to make sense of [.{}] in understandable terms because I currently just don't understand it :-) But perhaps the reduce operator is some of that sufficiently advanced technology that "knows" how the operator it wraps is slotted and does something appropriate. Also, does the reduction operator have the same magic as its alphabetic twin such that it can pull N things at a time from the list for operators that require N operands? -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]