All Posts

Scala Central: Functional Design Patterns in Scala

Video recording of a talk I gave on functional programming at a Scala Central meetup.

Functional Design Patterns in Scala: 2. Lenses

Case classes provide a convenient way of working with immutable objects in scala. Manipulating fields within them can be tedious, however. In this post, we will look at how lenses can be used to abstract over this complexity while preserving the benefits of immutability.