Skip to content

Commit

Permalink
str_utils2.clj: fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Sierra committed Jun 5, 2009
1 parent bea244b commit d1e9459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clojure/contrib/str_utils2.clj
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
[bindings & body]
(assert (vector bindings))
(assert (= 2 (count bindings)))
;; This seems to be the fastest way to iterate over characters.
`(let [#^String s# ~(second bindings)]
(dotimes [i# (.length s#)]
(let [~(first bindings) (.charAt s# i#)]
Expand All @@ -58,7 +59,6 @@
[bindings & body]
(assert (vector bindings))
(assert (= 2 (count bindings)))
;; This seems to be the fastest way to iterate over characters.
(let [character (first bindings)
string (second bindings)]
`(let [#^String s# ~string
Expand Down

0 comments on commit d1e9459

Please sign in to comment.