Liking cljdoc? Tell your friends :D
Clojure only.

exoscale.lingo.utils


focusclj

(focus m paths)
(focus m paths opts)
(focus m
       paths
       {:keys [mismatch-fn match-fn]
        :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
raw docstring

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

× close