Hope I'm not missing something here, but the documentation for the split
function (
http://clojure.github.com/clojure/clojure.string-api.html#clojure.string/split)
on
'clojure/contrib/string' says that the input args are:
*Usage: (split s re)*
* (split s re limit)*
But I took a look at the source and they are the reverse of that (
clojure-contrib-1.2.0-RC3/src/main/clojure/clojure/contrib/string.clj ):
(defn split
"Splits string on a regular expression. Optional argument limit is
the maximum number of splits."
{:deprecated "1.2"}
* ([^Pattern re ^String s] (seq (.split re s)))*
* ([^Pattern re limit ^String s] (seq (.split re s limit))))*
The documentation might need to be updated.
Tim
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en