kaif has asked for the wisdom of the Perl Monks concerning the following question:
I am looking for list utilities that may aid me in using more functional programming paradigms in Perl. I find myself writing many of these often, so I was wondering if there was already a CPAN module to help me. I tried searching Perlmonks (and CPAN) for related questions, but I was unsuccessful in my attempt.
It seems that many people here swear by List:Util and List::MoreUtils. (There must be more! I'm sorry I was unable to find them.) However, there are still many functions that I would like to use:
So you say all of these are easy to implement from scratch or by using List::MoreUtils? Perhaps, but I was looking for an existing implementation, perhaps implemented in XS for efficiency. If there is no such thing, would people be interested in such a CPAN module (unfortunately, I probably wouldn't be able to do an XS version myself)? Thanks for your help!
Remark: I have likely mixed the uses of "array" and "list" in this node. However, I do not think it matters here, really, because I would really like for all of these functions to work on list references. In particular, my preferred example for transpose is "[[1,2,3],[2,3,5]] into [[1,2],[2,3],[4,5]]."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: More functional programming utilities
by BrowserUk (Patriarch) on Jun 08, 2005 at 08:39 UTC | |
by ivancho (Hermit) on Jun 08, 2005 at 12:07 UTC | |
by BrowserUk (Patriarch) on Jun 08, 2005 at 13:01 UTC | |
by ivancho (Hermit) on Jun 09, 2005 at 02:24 UTC | |
by BrowserUk (Patriarch) on Jun 09, 2005 at 03:31 UTC | |
| |
|
Re: More functional programming utilities
by Roy Johnson (Monsignor) on Jun 08, 2005 at 11:33 UTC | |
by kaif (Friar) on Jun 08, 2005 at 14:03 UTC | |
by Roy Johnson (Monsignor) on Jun 08, 2005 at 15:38 UTC | |
by kaif (Friar) on Jun 08, 2005 at 16:22 UTC | |
by demerphq (Chancellor) on Jun 08, 2005 at 18:44 UTC | |
| |
by ivancho (Hermit) on Jun 08, 2005 at 11:42 UTC |