ClojureDocs

Nav

Namespaces

ends-with?

clojure.string

Available since 1.8
  • (ends-with? s substr)
True if s ends with substr.
1 Example
(use 'clojure.string)

(ends-with? "Minsun" "sun")
;;=> true
(ends-with? "Minsun" "suns")
;;=> false
(ends-with? "Minsun" "un")
;;=> true
See Also

True if s starts with substr.

Added by iGEL

True if s includes substr.

Added by oakmac
0 Notes
No notes for ends-with?