fork download
  1. (defn disemvowel [s]
  2. (as-> s res
  3. (filter (complement #{\ }) res)
  4. (group-by #(if (#{\a \e \i \o \u} %) :vowel :consonant) res)
  5. [(:consonant res) (:vowel res)]
  6. (map #(clojure.string/join "" %) res)))
  7. (-> "all those who believe in psychokinesis raise my hand" disemvowel println)
Success #stdin #stdout 1.32s 389120KB
stdin
Standard input is empty
stdout
(llthswhblvnpsychknssrsmyhnd aoeoeieeioieiaiea)