Advertisement
H13

hy definit macro

H13
Aug 15th, 2019
3,311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defmacro/g! definit [lambda-list]
  2.   `(defn --init-- [self ~@lambda-list]
  3.      (do
  4.        ~@(lfor g!arg lambda-list
  5.                `(setv (. self ~g!arg) ~g!arg)))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement