Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Specializing Functions with Currying

by thor (Priest)
on Aug 09, 2004 at 15:03 UTC ( #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


Comment on Re^3: Specializing Functions with Currying
Download Code
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
Node Status?
node history
Node Type: note [id://381254]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-07-12 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls