(rontolisp) docs
← (clojure.string)

clojure.string/index-of

(clojure.string/index-of s sub) (clojure.string/index-of s sub from)

Answers the index of the first occurrence of the literal string sub in s at or after from (default 0), nil when missing. Works as a function value too. from is read as Java's indexOf reads it: a negative one is 0, one past the end finds nothing (an empty sub is found at the end), a fractional one truncates.