feat(clojure/fund): add ends with
This commit is contained in:
parent
7c6d9ae21d
commit
b46fa3cde2
1 changed files with 8 additions and 0 deletions
8
clojure/fundament/0_ends_with.clj
Normal file
8
clojure/fundament/0_ends_with.clj
Normal 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?)
|
Loading…
Reference in a new issue