Okay, I played around a bit more with this problem over the long weekend and I
found my groups. Running the following code:
(defn print-results
[& rest]
(println (str rest))
"done")
(clojure.string/replace "one and two and three" #"(.+) and (.+) and (.+)"
(partial print-results))
In the Clojure REPL I get:
(["one and two and three" "one" "two" "three"])
"done"
In the Clojurescript REPL I get:
("one and two and three" "one" "two" "three" 0 "one and two and three")
"done"
So, it appears that Clojure passes a single array argument whereas
Clojurescript passes multiple arguments. So the code needs to be different for
each language, but at least I found my groups :).
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.