unnali/rouge — pull request #19 by noprompt (2012-12-05 22:44:29+00:00)
Title: Seqable strings, implement most of clojure.string

This was one of the items on the TODO list. Hopefully, it's in the right direction.

I also took a crack at implementing *most* of `clojure.string` (might as well right?), although there's much to do.

```clojure
(seq "food") ;; => ("f" "o" "o" "d")

(defn rev [s]
(reduce (fn [c s1] (+ c s1)) s))

(rev "donut") ;; => "tunod"

(map .ord "SMASH!") ;; => (83 77 65 83 72 33)

(rouge.string/join "?" "WAT") ;; => ("W?A?T")
```

Also, I implemented a few rough cuts in `rouge.core`. The notable one is `to-array` which should help eliminate the `(.to_a coll)` and `(.to_a (seq coll))` patterns throughout the codebase.

If I left any stone unturned be sure to let me know so I can address it or write tests.