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.

### Advertisement

### Categories

Handy snippets of code

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.

The fibonacci sequence has many applications , such asAï¿½paintings , predicting stock market changes and even sunflowers. This example illustrates the fibonacci sequence in Haskell.

Posted in Haskell Also tagged fibonacci, ghci, haskell, math, programming, recursion, sequence Leave a comment