Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Specializing Functions with Currying

by stvn (Monsignor)
on Aug 06, 2004 at 16:30 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://380621]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2024-04-19 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found