Skip to content

Instantly share code, notes, and snippets.

@borkdude
Created April 1, 2023 11:36
Show Gist options
  • Save borkdude/23cca06d3c0d62973fd023de0a87ab9e to your computer and use it in GitHub Desktop.
Save borkdude/23cca06d3c0d62973fd023de0a87ab9e to your computer and use it in GitHub Desktop.
<-
(defmacro <-
[& טופסים]
(let [[x & טופסים] (reverse טופסים)]
(loop [x x, טופסים טופסים]
(if טופסים
(let [טופס (first טופסים)
מתארגן (if (seq? טופס)
(with-meta `(~(first טופס) ~x ~@(next טופס)) (meta טופס))
(list טופס x))]
(recur מתארגן (next טופסים)))
x))))
(prn (<- inc inc 1))
;; 3 <=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment