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
1 changed files with 8 additions and 0 deletions

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?)