Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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?
[marto]: good morning all

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2018-01-19 10:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (217 votes). Check out past polls.

    Notices?