Clojure에서 python 문법을 쓰는 법 (defmacro py [expression for x in arr] `(map (fn [~x] ~expression) ~arr)) (py (* 2 x) for x in '(1,2,3)) clojure는 바로 macro주의 낙원을 말하는 것입니다 여러분. 참고 매크로 · 초보자를 위한 클로저 What makes Lisp macros so special? - Stack Overflow PRGRM/Clojure 2021.08.17
(유머) JS 연산자 오버로딩 const a = new MyArray(1, 2, 3); const b = new MyArray(5, 6, 7); console.log(a); console.log(b); const c = a . b; console.log(c); const MyArray = new Proxy(function() {}, { constructor(f, args, target) { const array = new Array(...args); const proxy = new Proxy(array, { get(target, prop) { if(prop === '__array__') return array; reurn new Array(...array.concat(eval(prop).__array__)); } }); return .. PRGRM/JS 2021.08.17