It's time to take a break from practical applications of functional programming to something less practical, but very interesting to know 😎
A common requirement is to call various APIs in a sequence, any of which may fail. We see how to implement this requirement in a clean way using monads.
In this exercise we are going to solve a variation of the robot kata. This version is called the Lost Robot kata.
Monads have a reputation as being a very complicated aspect of functional programming. In this article we demystify them and learn how to apply monads in our code
Here we implement the robot kata in a functional programming style
In this exercise we are going to get some hands on practice using higher order functions. We are going to have a form simulating a ticket booking UI. The user can enter the number of tickets to book and submit the form to book the tickets. Problem Statement There are
The foundation of programming is to take smaller abstractions and make bigger abstractions out of it. In the previous articles in this series, we learned about using functions to create abstractions. Now let us look at how to join them up together using functional composition.
Functions that return the same output when given the same input are called pure functions. Then what are impure functions?
You come across decorators when working in many frameworks. Here is how they work.
In this article we look at higher order functions, which are the bedrock of functional programming style