feat(clojure/fund): add ends with

This commit is contained in:
Dmitriy Pleshevskiy 2021-10-29 14:24:43 +03:00
parent 7c6d9ae21d
commit b46fa3cde2

View file

@ -0,0 +1,8 @@
(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?)