Is this the sort of answer you're looking for?
my Sub @array = ( &infix:<cmp>, &infix:<eqv>, &infix:<gcd>); sub hof ( &foo ) { foo(3,42) } my &op = &infix:<gcd>; say hof &op; # 3
Hth.
In reply to Re: [Perl6] Can i put a operator in container
by raiph
in thread [Perl6] Can i put a operator in container
by freakcoco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |