Rudolf Adamkovič Personal site


My enum macro

(macro enum [& objects]
  "Create a table mapping OBJECTS to themselves."
  (collect [_ object (ipairs (table.pack objects))]
    object object))

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.