re: Daily Challenge #3 - Vowel Counter VIEW POST

FULL DISCUSSION
 

Clojure:

;; with regex
(defn vowels [s]
  (count (re-seq #"(?i)[aeiou]" s)))
;; without
(defn vowels [s]
  (count (filter #(some #{%} "AaEeIiOoUu") s)))
code of conduct - report abuse