Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
[commons-io "2.21.0"]
[compojure "1.7.2"]
[digest "1.4.10"]
[fast-zip "0.4.0"]
[fast-zip "0.7.0"]
[instaparse "1.5.0"]
[metrics-clojure "2.10.0"]
[murphy "0.5.3"]
Expand Down
8 changes: 4 additions & 4 deletions src/puppetlabs/puppetdb/zip.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

clojure.lang.IPersistentVector
(-branch? [_] true)
(-children [x] (when (seq x) x))
(-children [x] (when (seq x) (seq x)))
(-make-node [orig-vec new-children]
(transfer-meta orig-vec (when (seq new-children)
(if (vector? new-children)
Expand All @@ -32,7 +32,7 @@

clojure.lang.IPersistentSet
(-branch? [_] true)
(-children [x] (when (seq x) x))
(-children [x] (when (seq x) (seq x)))
(-make-node [orig-set new-children]
(transfer-meta orig-set (when (seq new-children)
(into (empty orig-set) new-children))))
Expand Down Expand Up @@ -80,7 +80,7 @@
(z/zipper -branch? -children -make-node node))

(defn post-order-visit
"Does a post-order travsersal of `zipper`. `visitors` is a seq of
"Does a post-order traversal of `zipper`. `visitors` is a seq of
functions that take two args, node and state"
[zipper initial-state
visitors]
Expand All @@ -105,7 +105,7 @@
visitors)))

(defn pre-order-visit
"Does a pre-order travsersal of `zipper`. `visitors` is a seq of
"Does a pre-order traversal of `zipper`. `visitors` is a seq of
functions that take two args, node and state"
[zipper initial-state
visitors]
Expand Down
Loading