On 31 March 2016 at 16:39, hiskennyness <[email protected]> wrote: > In porting my modelling library Cells to Clojure I managed to get a stack > overflow when the printer tried to print a recursive data structure* I have > used in the Common Lisp version. > > * Basically, a ref holds a map in which some values are maps in which some > values are the ref. > > In Lisp we have *print-depth* as well as *print-length* to deal with just > this case. > > Is there some way I can deal with this, or are recursive data structures > not really supported by Clojure? >
The same variables exist in Clojure: *print-level* and *print-length* respectively. - James -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
