Posts tagged “functional-programming”
2024
Typed Filters and callAsFunction
Combining three Swift features for the sake of expressivitiy: sum types aka enums, callAsFunction to introduce “callable” semantics, and type extensions to beautify call sites.
2019
2016
Creating a Lens for an Object to Provide a New Public Interface
2015
Encapsulate a Process in a Single Line Using Bind and Good OO Design
Where Instead of Using Functional Bind, I Create an Expressive Model
Thinking in Terms of Functional Programming Encourages Clean Factoring of Code