ClojureDocs

Nav

Namespaces

Take the 2025 State of Clojure Survey! Help shape the future of Clojure. Take Survey →

last-index-of

clojure.string

Available since 1.8
  • (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. Return nil if value not found.