Letter pyramid in Clojure

less than 1 minute read

Notes

;; letter_pyramid.clj

(def chars-list
  (map #(char (+ % 65)) (range 26)))

(defn line [number]
  (clojure.string/join "" (take number chars-list)))

(println (clojure.string/join "\n" (map line (range 1 27))))

Updated: