Advertisement
H13

hy definit macro

H13
Aug 15th, 2019
1,208
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
RAW Paste Data Copied
Advertisement