Skip to content

Commit 1d5a154

Browse files
author
Ivan Shamshurin
committed
working pangram
1 parent fee87e0 commit 1d5a154

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
(ns otus-02.homework.pangram
2-
(:require [clojure.string :as string]))
2+
(:require [clojure.string :as string])
3+
(:require [otus-02.homework.palindrome :as pal]))
34

5+
(def alphabet-count 26)
46

5-
(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)))
613

14+
(comment
15+
(is-pangram "The quick brown fox jumps over the lazy dog"))

0 commit comments

Comments
 (0)