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

Re^3: Specializing Functions with Currying

by FoxtrotUniform (Prior)
on Aug 06, 2004 at 03:23 UTC ( [id://380444]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     'boldital' => do {
        my $i = curry \&wrap_with_html => ( 'i' );
        my $b = curry \&wrap_with_html => ( 'b' );
        sub { $b->( $i->( @_ ) ) }
    },
    
  2. or download this
    sub compose
    {
    ...
    
    'boldital' => &compose(&curry(\&wrap_with_html, 'i'),
                           &curry(\&wrap_with_html, 'b')),
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 05:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found