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 <wsha...@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@x-query.com > http://x-query.com/mailman/listinfo/talk _______________________________________________ talk@x-query.com http://x-query.com/mailman/listinfo/talk