Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Specializing Functions with Currying

by stvn (Monsignor)
on Aug 06, 2004 at 16:30 UTC ( #380621=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub build_para
    {
        return $handlers{'para'}->(join "" => map { $handlers{$_->[0]}->($
    +_->[1]) } @{$_[0]});
    }
    
  2. or download this
    my @test_data_2 = ( 'para', [
        ['none', 'The quick brown '],
    ...
    }
    
    print build_HTML(@test_data_2);
    
  3. or download this
    *build_para = curry(\&build_HTML, 'para');
    print build_para(\@test_data);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-11-26 06:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (163 votes), past polls