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
| (define-syntax hash | |
| (er-macro-transformer | |
| (lambda (expr r c) ; expression rename compare | |
| (let ((body (cdr expr))) | |
| ;; code-expansion, self-executable lambda | |
| `(((lambda () | |
| (let ((table make-strong-eq-hash-table)) | |
| ,(let loop | |
| ((pairs body)) | |
| (if (> (length pairs) 2) | |
| (cons '(hash-table/put! table ,(car pairs) ,(cdar pairs)) loop(cddr pairs)) | |
| '())) | |
| table)))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment