I'm writing a sketch in Clojure/Quil in fun(ctional)-mode.
Sometimes, I want to be able to inspect what the current state
holds.
However, when I try to call Quil's state
from the REPL I get the following:
(q/state) ==>
NullPointerException clojure.core/deref-future (core.clj:2208)
Not sure if this is relevant, but the same happens with drawing functions from the REPL:
(q/rect 0 0 10 10)
How can I get the current state to inspect it in the REPL?