Created
July 18, 2019 00:13
-
-
Save fstamour/062559a5e02299c2a479b2644166a219 to your computer and use it in GitHub Desktop.
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
(defun box (thing) (cons :box thing)) | |
(defun ref (box) | |
(assert (eq (car box) :box)) | |
(cdr box)) | |
(defun (setf ref) (value box) | |
(assert (eq (car box) :box)) | |
(setf (cdr box) value)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment