Clojure data structure inspection functionality. This code has a long history and at various points of time it lived in different projects. Originally it was part of swank-clojure, afterwards it was moved to javert, then forked to another project from which it was contributed to cider-nrepl. Finally cider-nrepl was split into two libraries and the code ended up here.
Pretty wild, right?
Clojure data structure inspection functionality. This code has a long history and at various points of time it lived in different projects. Originally it was part of swank-clojure, afterwards it was moved to javert, then forked to another project from which it was contributed to cider-nrepl. Finally cider-nrepl was split into two libraries and the code ended up here. Pretty wild, right?
(clear inspector)
Clear an inspector's state.
Clear an inspector's state.
(def-current-value inspector namespace var-name)
Define the currently inspected value as a var with the given name in the provided namespace.
Define the currently inspected value as a var with the given name in the provided namespace.
(down inspector idx)
Drill down to an indexed object referred to by the previously rendered value.
Drill down to an indexed object referred to by the previously rendered value.
(eval-and-inspect inspector expr)
Evaluate the given expression where v
is bound to the currently inspected
value. Open the evaluation result in the inspector.
Evaluate the given expression where `v` is bound to the currently inspected value. Open the evaluation result in the inspector.
(next-page inspector)
Jump to the next page when inspecting a paginated sequence/map. Does nothing if already on the last page.
Jump to the next page when inspecting a paginated sequence/map. Does nothing if already on the last page.
(pop-item-from-path path)
Takes the current inspector path, and returns an updated path one level up.
Takes the current inspector path, and returns an updated path one level up.
(prev-page inspector)
Jump to the previous page when inspecting a paginated sequence/map. Does nothing if already on the first page.
Jump to the previous page when inspecting a paginated sequence/map. Does nothing if already on the first page.
(push-item-to-path index idx path current-page page-size)
Takes the current inspector index, the idx
of the value in it to be navigated
to, and the path so far, and returns the updated path to the selected value.
Takes the current inspector index, the `idx` of the value in it to be navigated to, and the path so far, and returns the updated path to the selected value.
(render-collection-paged inspector obj)
Render a single page of either an indexed or associative collection.
Render a single page of either an indexed or associative collection.
(render-indexed-values inspector obj)
(render-indexed-values inspector obj idx-starts-from)
(set-page-size inspector new-page-size)
Set the page size in pagination mode to the specified value. Current page will be reset to zero.
Set the page size in pagination mode to the specified value. Current page will be reset to zero.
(start inspector value)
Put a new value onto the inspector stack.
Put a new value onto the inspector stack.
(up inspector)
Pop the stack and re-render an earlier value.
Pop the stack and re-render an earlier value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close