We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fee87e0 commit 1d5a154Copy full SHA for 1d5a154
1 file changed
otus-02/src/otus_02/homework/pangram.clj
@@ -1,6 +1,15 @@
1
(ns otus-02.homework.pangram
2
- (:require [clojure.string :as string]))
+ (:require [clojure.string :as string])
3
+ (:require [otus-02.homework.palindrome :as pal]))
4
5
+(def alphabet-count 26)
6
-(defn is-pangram [test-string])
7
+(defn is-pangram [test-string]
8
+ (let [test-set (-> test-string
9
+ (pal/transform-string)
10
+ (vec)
11
+ (set))]
12
+ (== (count test-set) alphabet-count)))
13
14
+(comment
15
+ (is-pangram "The quick brown fox jumps over the lazy dog"))
0 commit comments