There's more than one way to do things | |
PerlMonks |
Re: Specializing Functions with Curryingby stvn (Monsignor) |
on Aug 06, 2004 at 16:30 UTC ( [id://380621]=note: print w/replies, xml ) | Need Help?? |
FoxTrotUniform,
Nothing like a good meditation on functional programming to clean out the OOP cobwebs in ones head. Thanks :) You could make your build_para sub even more Haskell-ish if you removed all assignment statements as well. But if we are really gonna get functional, then we might as well make a generic build_HTML sub and use more recursive datastructures. We could then actually use build_HTML to compose the build_para subroutine.
-stvn
In Section
Meditations
|
|