Skip to content

Commit

Permalink
fix: rm unused arity of string transducer
Browse files Browse the repository at this point in the history
  • Loading branch information
erdos committed Jul 25, 2024
1 parent 0f4409e commit ae6f578
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/stencil/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@
`(let [b# ~body]
(when (~pred b#) b#)))

(defn ^String string
([values] (apply str values))
([xform coll] (transduce xform (fn ([^Object s] (.toString s)) ([^StringBuilder b v] (.append b v))) (StringBuilder.) coll)))
(defn string ^String [xform coll] (transduce xform (fn ([^Object s] (.toString s)) ([^StringBuilder b v] (.append b v))) (StringBuilder.) coll))

(defmacro whitespace?? [c]
`(case ~c (\tab \space \newline
Expand Down

0 comments on commit ae6f578

Please sign in to comment.