(I'm coming to the conclusion that graphs/trees should be stored as nodes and edges but in my ever present optimism...)
If I have a recursive structure (Node has a collection of child Nodes) can I use this library to dynamically create a lens to a nested child?
Something similar to Clojure's (update-in my-map [0 :children 6 :children 6]) to update the 7th child of the 7th child, which of course makes my-map a wizard ;-)
(I'm coming to the conclusion that graphs/trees should be stored as nodes and edges but in my ever present optimism...)
If I have a recursive structure (Node has a collection of child Nodes) can I use this library to dynamically create a lens to a nested child?
Something similar to Clojure's
(update-in my-map [0 :children 6 :children 6])to update the 7th child of the 7th child, which of course makesmy-mapa wizard ;-)