haskell

Rewriting functions with fold and reduce

11 minute read Published:

How to use fold and reduce to rewrite any function that operates on lists
Introduction In this post, I will explain how it is possible to use fold(in Haskell) or reduce(in JavaScript) to rewrite some common array functions to get a basic understanding of how they work and how much you can do with it. So, if you want to learn how fold/reduce work and what a powerful function it is, this post is for you. How does fold/reduce work? fold/reduce iterates over a list and operates on the current element and the already processed ones.

Writing a simple CLI-tool in Haskell

14 minute read Published:

Hello folks, I want to write a small tutorial on how to write a simple CLI-tool in Haskell. For all who did not know, Haskell is a pure functional programming language which was released in 1990. What I personally like the most is list comprehension, this is a really powerful and great feature. But there are also other really cool things like maybe for example. It is really packed with a lot of cool stuff.