Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Near-free function currying in Perl

by stvn (Monsignor)
on Nov 17, 2004 at 17:11 UTC ( #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
Node Status?
node history
Node Type: note [id://408481]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2020-12-03 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (52 votes). Check out past polls.

    Notices?