mykatas/clojure/fundament/0_ends_with.clj

8 lines
179 B
Clojure
Raw Normal View History

2021-10-29 14:24:43 +03:00
(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?)