[Haskell-beginners] dropWhile returning last dropped element

martin martin.drautzburg at web.de
Sat Apr 18 17:10:35 UTC 2015


Am 04/17/2015 um 11:18 PM schrieb Michael Orlitzky:

> Why do you want to avoid recursion? You could rewrite this to use list indices if you really wanted to, but anything
> you come up with is going to be essentially recursive, only less safe

Thanks for the code sample and pointing out that there may not be any last dropped element.

I was wondering if there is  to achive the desired behavior by plugging together higher-order functions. This was the
only reason why I wanted to avoid explicit recursion.



More information about the Beginners mailing list