Skip to content

Instantly share code, notes, and snippets.

@hyotang666
Created December 6, 2017 01:39
Show Gist options
  • Save hyotang666/1ec9f76b145f7294def00d5bd0ffb90f to your computer and use it in GitHub Desktop.
Save hyotang666/1ec9f76b145f7294def00d5bd0ffb90f to your computer and use it in GitHub Desktop.
(defun |$-reader| (s c)
(declare(ignore c))
(let((op(read s t t t))
(args(read s t t t)))
(cons op args)))
(set-macro-character #\$ #'|$-reader|)
;; cl-user> (append (list 1 2 3) $list(4 5 6))
;; => (1 2 3 4 5 6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment