Monocle. Scala. How to work with recursive data?

191 views Asked by At

Сonsider a simple case:

case class Node(id: String, name: String, children: Seq[Node])

How can i make changes to any depth using Monocle??

I want to add a new Node to the list children if it isn't exist and sometimes change a name. BUT ANY DEPTH. recursively.

0

There are 0 answers