News for hackers. Stuff that matters.
Re:Making Map Operations Implicit in Programming by DanWaterworth on Tuesday December 17, 2013 @11:40AM (#6922035)
I like my code to do what it says. You can pretty much do that in Haskell. If you allow me to add a definition first:

    mfilter' :: MonadPlus m => (a -> Bool) -> a -> m a
    mfilter' f = mfilter f . return
Then it's just:

    toUpperCase <=< mfilter' (\x -> length x /= 0) . trim
Which is pretty close. No need to change the language.

There are no comments on this comment yet.