Sha256: b6d915717cc946f30d3874454d00d6b5d05f02188e6b2a6b7eb07573ad6b3544
Contents?: true
Size: 939 Bytes
Versions: 213
Compression:
Stored size: 939 Bytes
Contents
# Lens Person Use lenses to manipulate (get, set, modify) immutable objects. Updating fields of nested (immutable) objects is kind of annoying in Scala. One solution is to use [lenses](https://wiki.haskell.org/Lens). Implement several class attribute accessing functions using lenses, you may use any library you want. One good choice could be [Monocle](https://julien-truffaut.github.io/Monocle/]. The test suite also allows you to avoid lenses alltogether so you can experiment with different approaches. The Scala exercises assume an SBT project scheme. The exercise solution source should be placed within the exercise directory/src/main/scala. The exercise unit tests can be found within the exercise directory/src/test/scala. To run the tests simply run the command `sbt test` in the exercise directory. For more detailed info about the Scala track see the [help page](http://help.exercism.io/getting-started-with-scala.html).
Version data entries
213 entries across 213 versions & 1 rubygems