in reply to [Perl6] Can i put a operator in container
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [Perl6] Can i put a operator in container
by freakcoco (Sexton) on Jul 11, 2017 at 05:13 UTC |