Thanks for your clarification.
On Oct 9, 11:47 pm, Stephen Compall 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 indexOf.
>
> No, it does
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 inde
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 m