Re: [basex-talk] Union of maps?

2015-07-15 Thread Graydon Saunders
Hi Marc -- That looks very helpful. (Just as soon as I get over feeling like a cabbage for forgetting about fold-left()!) thanks! Graydon On Wed, Jul 15, 2015 at 3:51 PM, Marc van Grootel < marc.van.groo...@gmail.com> wrote: > Hi Graydon, have a look here > https://github.com/xokomola/fold/blo

Re: [basex-talk] Union of maps?

2015-07-15 Thread Marc van Grootel
Looking at that code again I think it should be rewritten to use map:for-each it's too convoluted, but it probably gives you an idea of how to proceed. Here's a test that shows how it works. https://github.com/xokomola/fold/blob/dbb79c60a7356e32a0994e581ad4f7f5377ddc72/test/fold-common/test-common.

Re: [basex-talk] Union of maps?

2015-07-15 Thread Marc van Grootel
Hi Graydon, have a look here https://github.com/xokomola/fold/blob/dbb79c60a7356e32a0994e581ad4f7f5377ddc72/webapp/fold-common/common.xqm#L125 hope it helps --Marc > On 15 jul. 2015, at 20:01, Graydon Saunders wrote: > > Hi -- > > In BaseX 8.2.1, I have a bunch of maps; the maps may have som

[basex-talk] Union of maps?

2015-07-15 Thread Graydon Saunders
Hi -- In BaseX 8.2.1, I have a bunch of maps; the maps may have some overlap of key values. I would like to merge/find the union of all of these maps while retaining all the values associated with each key in the resulting map-of-all-maps. (Combined map? Any word can be wrong, here! :) map:mer

Re: [basex-talk] RESTXQ: function loading

2015-07-15 Thread Jérôme Chauveau
Hi Christian, Thank you for your answer. You are right! The load-xquery-module function seems to be exactly what I need. I hope it will be implemented one day. Regards, Jérôme Le 10/07/2015 15:13, Christian Grün a écrit : Hi Jérôme, With the fn:function-lookup call, as you already guesse