Tag Archives: filter

(Haskell) Simultaneous filter and map

The `filtermap` functional below allows to perform the standard `map` and `filter` operations in one go. The mapping function has to return a `Maybe` monad, and values of `Nothing` are filtered out.

Posted in Haskell | Also tagged , , , , | Leave a comment