Skip to content

Instantly share code, notes, and snippets.

@NeilRobbins
Created May 22, 2013 14:50
Show Gist options
  • Save NeilRobbins/5628140 to your computer and use it in GitHub Desktop.
Save NeilRobbins/5628140 to your computer and use it in GitHub Desktop.
(require '[clojure.zip :as zip])
(def v [[[1 2 [3 4]] [:a [[ :b :c] :d]]] ["f" "g"] [[["h"] "i"] "j"]])
(def z (zip/vector-zip v))
z
( -> z zip/node)
( -> z
zip/down
zip/down
zip/down
#_zip/right
(zip/edit + 5)
zip/node
)
(->
z
zip/root)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment