Proper spy

This commit is contained in:
Joseph Ferano 2026-08-29 18:21:27 +07:00
parent 37805317a4
commit 2aeda5c833

View File

@ -1,4 +1,10 @@
(ns util) (ns util
(:require
[clojure.pprint :as pprint]))
(defn spy
([x] (pprint/pprint x) x)
([tag x] (pprint/pprint [tag x]) x))
(defmacro do-grid [[r rows c cols] & body] (defmacro do-grid [[r rows c cols] & body]
`(dotimes [~r ~rows] `(dotimes [~r ~rows]