This acknowledge that merging could be simple or complex. Configuring merging should be easy and it should be robust. This library tackles some of the complexities of these statements. Please take a look at this Clojure library and make any suggestions in pull requests or issues.
You can use this library by adding it as a dependency:
At this point, merging is divided into 3 types of comparisons:
merge-with
concat-merge
/concat-merge-with
- Puts all items into one vectordistinct-merge
/distinct-merge-with
- Puts all items into one deduplicated vectorindex-merge
/index-merge-with
- Handled with recursive calls using all values at each index and puts the results in a vector-with
take a first parameter of a function that will handle these situations. All functions that lack this ending use the value from the last argument passed ingreedy-merge
- Does a concat-merge-with
and puts other values into a single vectorgreedy-distinct-merge
- Does a distinct-merge-with
and puts other values into a single deduplicated vectorIn order to make recommendations to this library, either please
base fork
should be JasonStiefel/clojure-deep-merge
base
should be master
head fork
should be your forked repository, created in step 1compare
should be the branch you created in step 2Or create an issue with specifics of what is wrong or what you would like to see.
This incorporates Leiningen for its build/test/deploy process.
To test this project, run lein test
.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close