I think the mismatch is because page you looked at is for
clojure.string, not clojure-contrib.string.  The documentation for the
split from clojure-contrib.string is here:

http://clojure.github.com/clojure-contrib/string-api.html#clojure.contrib.string/split

On Aug 15, 5:12 pm, Timothy Washington <twash...@gmail.com> wrote:
> Hope I'm not missing something here, but the documentation for the split
> function 
> (http://clojure.github.com/clojure/clojure.string-api.html#clojure.str...)
> 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 clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to