
28 Sep
2011
28 Sep
'11
6:17 p.m.
On Wed, 28 Sep 2011, Roman Leshchinskiy wrote:
If performance isn't a concern, what's wrong with using reverse . dropWhile f . reverse? Another easy definition is this:
foldr (\x xs -> if null xs && f x then [] else x:xs) []
Ah, this is meant with tailDropWhile! I have it already in my utility package: http://hackage.haskell.org/packages/archive/utility-ht/0.0.7/doc/html/Data-L...