(assoc-in* m ks v)
Works best for small collections seemingly.
Works best for small collections seemingly.
(fix-accessor ks)
Turns strings into keywords and strings like "0" into Longs so it can access vectors as well as maps.
Turns strings into keywords and strings like "0" into Longs so it can access vectors as well as maps.
(parse-accessor accessor)
Split accessors like foo.bar.baz by the dot. But if there is a double dot '..' then it will leave it
Split accessors like foo.bar.baz by the dot. But if there is a double dot '..' then it will leave it
(set-missing-value-formatter! missing-value-fn
&
{:keys [filter-missing-values]
:or {filter-missing-values false}})
Takes a function of two arguments which is called on a missing value. The function should return the value to be output in place of an empty string (which is the default from 'default-missing-value-formatter').
Call with named argument :filter-missing-values true to force filtering of missing values (although for most use cases this will not make sense).
Arguments to missing-value-fn: tag - map with data for the tag being evaluated. Contains the key :tag-type with the value :filter or :expr (for filter or expression tag types. For :filter: tag-value - the contents of the filter tag as a string. For :expr: tag-name - the name of the expression. args - the args provided to the expression. context-map - the context-map provided to the render function.
Takes a function of two arguments which is called on a missing value. The function should return the value to be output in place of an empty string (which is the default from 'default-missing-value-formatter'). Call with named argument :filter-missing-values true to force filtering of missing values (although for most use cases this will not make sense). Arguments to missing-value-fn: tag - map with data for the tag being evaluated. Contains the key :tag-type with the value :filter or :expr (for filter or expression tag types. For :filter: tag-value - the contents of the filter tag as a string. For :expr: tag-name - the name of the expression. args - the args provided to the expression. context-map - the context-map provided to the render function.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close