Liking cljdoc? Tell your friends :D

exoscale.lingo.highlight


focusclj/s

(focus m path)
(focus m path opts)
(focus m
       path
       {:keys [mismatch-fn match-fn descend-mismatching-nodes?]
        :or {mismatch-fn (constantly (quote _)) match-fn identity}
        :as opts}
       current-path)

Takes a value, runs mismatch-fn on all values that are not in paths and runs match-fn on all values that are in paths. This is usefull to create values with every irrelevant values blanked and highlights on the relevant ones for instance

Takes a value, runs `mismatch-fn` on all values that are not in `paths` and
runs `match-fn` on all values that are in `paths`. This is usefull to create
values with every irrelevant values blanked and highlights on the relevant
ones for instance
sourceraw docstring

highlightclj/s

(highlight value
           {:as _pb
            :keys [in val pred]
            :exoscale.lingo.explain/keys [message]
            :or {message (str "Does not conform to " pred)}}
           {:as opts :keys [colors? highlight-inline-message?]})
source

prefix-linesclj/s

(prefix-lines s prefix)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close