update-paths now accepts a vector or accumulator of replacements in addition to a function. Values are applied
sequentially in depth-first order matching path-when's traversal.:raw-matches option for path-when returns the internal mutable accumulator (ArrayList on JVM, JS array on
ClojureScript) instead of converting to a vector. Enables zero-allocation update patterns by mutating matches
in-place and passing the same accumulator to update-paths.acc-set! macro in co.multiply.pathling.accumulator for setting values at an index in accumulators.Replacer interface (JVM) and IReplacer protocol (ClojureScript) to abstract over
function-based and collection-based replacement strategies.Initial release.
path-when - find all values matching predicate with navigation structurefind-when - find values without navigation (more efficient for read-only)transform-when - find and transform in one stepupdate-paths - apply function to locations identified by navigationREMOVE - sentinel for removing elements during transformation:include-keys option for matching/transforming map keysCan you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |