How to manage UI state with immutable data structures in Scala

March 21, 2019

A friend asked me how he could create a chess game in Scala, without relying on mutable data structures. I made a small user interface example, that displays a state for each user input, depending on the previous state, without any mutation.

Here is the sample code :

Discussion, links, and tweets

comments powered by Disqus