smreha
Last Updated: February 25, 2016
·
704
· runexec

Clojures shortest possible alphabet generation?

There's a better solution here => https://coderwall.com/p/y56y7w

user> (def upper-case (range 65 91))
#'user/upper-case
user> (def lower-case (map #(+ 32 %) upper-case))
user> (->> (merge upper-case lower-case)
       flatten
       (apply vector-of :char)
       (partition 13)
       clojure.pprint/pprint)
((\a \b \c \d \e \f \g \h \i \j \k \l \m)
 (\n \o \p \q \r \s \t \u \v \w \x \y \z)
 (\A \B \C \D \E \F \G \H \I \J \K \L \M)
 (\N \O \P \Q \R \S \T \U \V \W \X \Y \Z))