Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: [Perl6] Can i put a operator in container

by raiph (Deacon)
on Jul 11, 2017 at 04:15 UTC ( [id://1194766]=note: print w/replies, xml ) Need Help??


in reply to [Perl6] Can i put a operator in container

Hi freakcoco,

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

    That's what i want, thank

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1194766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-03-28 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found