Created
May 21, 2019 21:43
-
-
Save Tok/b619641f659b8a28946ab9f720970fc4 to your computer and use it in GitHub Desktop.
Von Neuman ordinals as Clojure sets.
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 zir.von-neumann-ordinal) | |
(defn- print-ordinals [ordinal] | |
(if (< (count ordinal) 16) | |
(do (println (count ordinal) ordinal) | |
(recur (conj (set ordinal) ordinal))))) | |
(defn -main [& _] (print-ordinals (set nil))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment