Tag Archives: functional programming

(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

Fibonacci sequence in Haskell

The fibonacci sequence has many applications , such asĀ paintings , predicting stock market changes and even sunflowers. This example illustrates the fibonacci sequence in Haskell.

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