![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: When would you use functional programming?by thraxil (Prior) |
on Oct 17, 2002 at 16:20 UTC ( [id://206064]=note: print w/replies, xml ) | Need Help?? |
the prod_list function could be implemented much more simply in many functional languages using a 'foldl' or 'foldr' construct. check out the CPAN module Functional. it provides a whole slew of useful functional constructs. including foldl:
In Section
Meditations
|
|