mykatas/clojure/fundament/0_ends_with.clj

8 lines
No EOL
179 B
Clojure

(ns kata)
(use 'clojure.string)
(defn solution [strng ending]
(ends-with? strng ending)
)
;; alternatively, we can define as alias
;; (def solution clojure.string/ends-with?)