Refactoring early returns to pattern matching 🔀
Early returns can be seen as a form of pattern matching.
Things I write that relate to functional programming, with a focus on how its techniques can be used even in other programming paradigms.
while
and for
loops to declarative collection functions like map
and filter
.