On Sun, Sep 28, 2014 at 2:25 PM, <[email protected]> wrote: > I won't say too much more about this as I have been discussing it with > Wolfgang this morning, and I think he will shortly post you a very > fast example when using XQuery 3.1 Maps in eXist… > > > Well, Michael already posted something along those lines, but here’s my > solution based on the public 3.1 draft: > > xquery version "3.0"; > > let $a := 1 to 1000000 > let $b := map:new((1 to 100) ! map:entry(xs:int(util:random() * 100000), > 0)) > return > $a[map:contains($b, .)] > > Wolfgang >
Would this not be $a[not(map:contains($b, .))] since I want the ones for which there is no matching sequence B.
_______________________________________________ [email protected] http://x-query.com/mailman/listinfo/talk
