Custom map combinator

Thursday, 2 September 2021 · 1 message
ML
Marco Lettere2 Sep 2021 18:19 #
Dear all, just thinking out loudly ... Whether it could be interesting to specify a function with proper signature as a custom combinator for map:merge. Currently "duplicates" : "combine" results in the entry value being a sequence of the originating values. This could cause loss of information in the case that one of the merged maps does not contain the key. It could be useful to use defaults or placeholders instead ... Maybe even combine the values as strings or numbers .... Too exotic? M.

⚡Generated with XQuery