lisp-macros Questions

1

Solved

Here is simplified example from book On Lisp by Paul Graham (scheme like syntax). (define-macro (bar) (let ((x 10) (y '(1 2 3)) (z 'foo)) `(list ,x `(,',z ,,@y)))) I know how ,,@y should work ...
Velamen asked 4/6, 2019 at 6:56

4

Solved

How do I modify the :arglist attribute for a clojure fn or macro? (defn tripler ^{:arglists ([b])} [a] (* 3 a)) (defn ^{:arglists ([b])} quadrupler [a] (* 4 a)) % (meta #'tripler) => {:argl...
Estefanaestel asked 20/9, 2012 at 20:21
1

© 2022 - 2024 — McMap. All rights reserved.