Re: Is there a clojure counterpart for java.lang.String indexOf method?

2011-10-10 Thread jingguo
Thanks for your clarification. On Oct 9, 11:47 pm, Stephen Compall stephen.comp...@gmail.com wrote: On Sun, 2011-10-09 at 07:36 -0700, jingguo wrote: Does clojure has a API for this? I have checked clojure.core and clojure.string. It seems that clojure does not have a counterpart for

Is there a clojure counterpart for java.lang.String indexOf method?

2011-10-09 Thread jingguo
java.lang.String has a method called indexOf(String str). We can use it with clojure in the following way: (.indexOf 012 12) Does clojure has a API for this? I have checked clojure.core and clojure.string. It seems that clojure does not have a counterpart for indexOf. -- You received this

Re: Is there a clojure counterpart for java.lang.String indexOf method?

2011-10-09 Thread Stephen Compall
On Sun, 2011-10-09 at 07:36 -0700, jingguo wrote: Does clojure has a API for this? I have checked clojure.core and clojure.string. It seems that clojure does not have a counterpart for indexOf. No, it doesn't. There's usually a way to do string operations that you traditionally do with