Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-12-27 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls