Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I needed a scan function for some data processing I am
doing. Unfortunately Sub::Curried does not work,
so I cannot use it's scan function.
Language::Functional has a broken test suite. And I can't figure out how to fix its issues. fp does not have a scanl function. I considered contributing this code to it, but am turned off by the semantics of the reduce function... I think that would be better named behead. It also potentially conflicts with List::Util in that respect. So here we have the scanl function, a staple of functional programming, available in standalone fashion. As you can see, it behaves the same as scanl for haskell
In reply to functional programming: scan function by metaperl
|
|