[Haskell-beginners] dropWhile returning last dropped element

Francesco Ariis fa-ml at ariis.it
Fri Apr 17 20:20:31 UTC 2015


On Fri, Apr 17, 2015 at 10:08:08PM +0200, martin wrote:
> Hello all
> 
> Just curious: is there a library function like dropWhile,
> but which returns last dropped element along with the remainder of the
> list?

None that I know of, but span from Data.List might be worth a look


More information about the Beginners mailing list