Skip to content

Instantly share code, notes, and snippets.

@chase-lambert
Last active May 17, 2023 00:42
Show Gist options
  • Save chase-lambert/232b2ae946ed9a61b000a7d6f7f24707 to your computer and use it in GitHub Desktop.
Save chase-lambert/232b2ae946ed9a61b000a7d6f7f24707 to your computer and use it in GitHub Desktop.
rendezvous with cassidoo challenge: 22.10.30
(ns print-ascii)
(defn print-ascii []
(doseq [i (range 0x20 0x7F)]
(print (char i))))
;; If you want to print in sections exactly as shown in the prompt
(defn print-ascii-sections []
(doseq [section (partition-all 16 (range 0x20 0x7F))]
(println (apply str (map char section)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment