]> gitweb.factorcode.org Git - factor.git/commit
assocs.extras: Combinator for merging two assocs, rename assoc-merge
authortimor <timor.dd@googlemail.com>
Mon, 5 Apr 2021 22:22:15 +0000 (00:22 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 12 Apr 2021 18:42:48 +0000 (11:42 -0700)
commit82318122e71cba10cf40a76d5610e2940745a187
tree914df12037ff4ffe44debb0db06d9303b749f4f6
parentffb2239b144c0d3b617266bf6a23c30a458bcb66
assocs.extras: Combinator for merging two assocs, rename assoc-merge

Renamed `assoc-merge` to `assoc-collect`, and introduced `assoc-merge` as
combinator to combine two assocs, specifying a quotation in case there is a
value for a certain key in both. `assoc-collapse` is the reducing version.
extra/assocs/extras/extras-tests.factor
extra/assocs/extras/extras.factor