(index-of s value)
(index-of s value from-index)
Return index of value (string or char) in s, optionally searching
forward from from-index or nil if not found.
Source
(defn
index-of
"Return index of value (string or char) in s, optionally searching\n forward from from-index or nil if not found."
([s value]
(let [result (.indexOf s value)] (if (neg? result) nil result)))
([s value from-index]
(let
[result (.indexOf s value from-index)]
(if (neg? result) nil result))))