D’oh!! There is no copy method for Sealed Classes in Kotlin!

A few weeks ago we looked at one of my pain points of working with Kotlin Data Classes: nested copy and we improved on a basic Kotlin solution using a Lens. Today we look at another type of nesting: Sealed Classes nesting. When we wanted to create some sort of restricted hierarchy in Java weContinue reading “D’oh!! There is no copy method for Sealed Classes in Kotlin!”