Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Near-free function currying in Perl

by stvn (Monsignor)
on Nov 17, 2004 at 17:11 UTC ( [id://408481]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
        '... got the right return value now');
    
    1;
    
  2. or download this
    my $curried_foo = foo(1);
    my $even_more_curried_foo = $curried_foo->(2);
    print $even_more_curried_foo->(3); # now we execute the function
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found