This repository is based on John De Goes's talk FP to the max, where imperative code is transformed to a functional equivalent. I am using Bow 0.4.0, a library for typed functional programming written in Swift, to use several FP constructions that help me perform this task.
You can see the correspondence of this code with the talk in:
- Imperative version: minute 7:10
- Monomorphic functional version: minute 20:20
- Polymorphic Tagless-Final version: minute 47:58