Chris Dutton wrote:

For example, I'm struggling to see how one could use the [*] to do this:

@names = «Gödel Escher Bach»;
@ages = $today »-« %date_of_birth{@names}
While I agree that hyper-operators are the better way to go(though I can see advantages either way), I was bored, so I tried to figure out a not entirely unpleasant Perl6-ish version of the Pike syntax.

@ages[*] = $today - %date_of_birth{@names}.values[*]
Well done. Thanks for working that out, Chris. And, in the process,
confirming my sense that vector ops are a better solution here.

;-)

Damian


Reply via email to