Skip to content

Commit

Permalink
Enhanced delay printing
Browse files Browse the repository at this point in the history
Fixes #121
  • Loading branch information
mfikes committed Nov 2, 2018
1 parent 2f27a9d commit cf1c086
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ClojureScript/replete/src/replete/pprint.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
(pretty-coll this "#object [" ['cljs.core.Atom {:val @x}] :line "]" visit)
(instance? Volatile x)
(pretty-coll this "#object [" ['cljs.core.Volatile {:val @x}] :line "]" visit)
(instance? Delay x)
(pretty-coll this "#object[" ['cljs.core.Delay {:status (if (nil? (.-f x)) :ready :pending),
:val (.-value x)}
] :line "]" visit)
(satisfies? IPrintWithWriter x)
(visit-default x)
(instance? Eduction x)
Expand Down

0 comments on commit cf1c086

Please sign in to comment.