diff --git a/otus-02/src/otus_02/homework/pangram.clj b/otus-02/src/otus_02/homework/pangram.clj index dc5d34c..c8fe7a6 100644 --- a/otus-02/src/otus_02/homework/pangram.clj +++ b/otus-02/src/otus_02/homework/pangram.clj @@ -1,6 +1,15 @@ (ns otus-02.homework.pangram - (:require [clojure.string :as string])) + (:require [otus-02.homework.palindrome :as pal])) +(def alphabet-count 26) -(defn is-pangram [test-string]) +(defn is-pangram [test-string] + (-> test-string + (pal/transform-string) + (set) + (count) + (== alphabet-count))) +(comment + (is-pangram "The quick brown fox jumps over the lazy dog") + )