[xquery-talk] arrow operator
Christian Grün
christian.gruen at gmail.com
Tue Aug 1 05:41:17 PDT 2017
Hi Wouter,
The arrow operator takes all items of the left side as first argument,
whereas the simple map operator processes all items one by one:
(1,2,3) => count() → 3
(1,2,3) ! count(.) → 1 1 1
Cheers,
Christian
On Tue, Aug 1, 2017 at 2:27 PM, W.S. Hager <wshager at gmail.com> wrote:
> Hi,
>
> Is there any advantage to using the 3.1 arrow operator over the simple map
> operator?
>
> $string => upper-case() => normalize-unicode() => tokenize("\s+")
>
> versus
>
> $string ! upper-case(.) ! normalize-unicode(.) ! tokenize(.,"\s+")
>
> Thanks,
> Wouter
>
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk
More information about the talk
mailing list