Skip to content

Commit

Permalink
Add tag-reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitem committed Jul 24, 2023
1 parent 6c38d72 commit d6104e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/zen/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,10 @@
(map (fn [[_k v]] (:start v)))
(filter identity))]
(stop-call ztx op-name)))

(defn tag-reduce [ztx tag f]
(reduce
(fn [acc sym]
(f acc (get-symbol ztx sym)))
{}
(get-tag ztx tag)))

0 comments on commit d6104e5

Please sign in to comment.