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