Last active
May 17, 2023 00:42
-
-
Save chase-lambert/232b2ae946ed9a61b000a7d6f7f24707 to your computer and use it in GitHub Desktop.
rendezvous with cassidoo challenge: 22.10.30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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