Simultaneous filter and map

/ Published in: Haskell
Save to your folder(s)

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.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.