8 lines
179 B
Clojure
8 lines
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?)
|