Must Clojure circular data structures involve constructs like ref?
问题 Today I've seen some references to tying the knot and circular data structures. I've been out reading some answers, and the solutions seem to involve using a ref to point back to the head of the list. One particular SO question showed a Haskell example, but I don't know Haskell well enough to know if the example was using a the Haskell equivalent of a ref. Is there a way to make a Clojure data structure circular without using a ref or similar construct? Thanks. 回答1: I straightforwardly