Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Specializing Functions with Currying

by FoxtrotUniform (Prior)
on Aug 06, 2004 at 03:23 UTC ( #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
Node Status?
node history
Node Type: note [id://380444]
help
Chatterbox?
erix chuckles
[choroba]: linenlessnesses

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-10-17 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (233 votes). Check out past polls.

    Notices?