Daniel Carrera wrote:
sub postfix:<!> { [*] 1..$^n }
say 5!;
WOW!! That *IS* cool. Can you explain to me how it works? I figured out
postfix: myself, but the rest is obscure to me.
Here is another idea: Is it possible to declare a circumfix function
that calculates the magnitude of a vector?
$magnitude = |@vector|;
You know how in math, two vertical bars are a standard notation for
magnitude. Oh oh oh... is it possible to define a circumfix function for
the dot product? Something like:
$dot_product = <@vector1,@vector2>;
Is that possible? That would be uber-cool.
Daniel.