Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Specializing Functions with Currying

by thor (Priest)
on Aug 09, 2004 at 15:03 UTC ( [id://381254]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Specializing Functions with Currying
in thread Specializing Functions with Currying

It's not really doable with the simpleminded curry() used here.
Perhaps I'm missing something, but what if you did this:
my %handler = ( "bold_italic" = curry(\&wrap_with_html,"b><i"), );

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
With all of us waiting, your kingdom will come

Replies are listed 'Best First'.
Re^4: Specializing Functions with Currying
by Aristotle (Chancellor) on Aug 09, 2004 at 15:38 UTC

    Err, yes, but that wasn't the point. It's a funny hack, but a hack. :-) It doesn't apply to the general case where one wants to compose functions.

    Makeshifts last the longest.

Re^4: Specializing Functions with Currying
by miro (Friar) on Aug 10, 2004 at 07:05 UTC
    The closing tag would be incorrect if you just add a slash before the string.
      You're absolutely correct.

      thor

      Feel the white light, the light within
      Be your own disciple, fan the sparks of will
      With all of us waiting, your kingdom will come

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-26 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found