<div dir="ltr"><div dir="auto"><div>Hi Michael,</div><div><br></div><div>The way you used the arrow operator in the example would be the way I expected it to work, namely by explicitly addressing the context, but it seems that it doesn't. It's actually implicitly binding the first argument of the function on the right to the value on the left. Or is there an exception I don't know about?</div><div><br></div><div>Thanks.<br><div class="gmail_extra"><br><div class="gmail_quote">Op 1 aug. 2017 18:58 schreef "Michael Kay" <<a href="mailto:mike@saxonica.com" target="_blank">mike@saxonica.com</a>>:<br type="attribution"><blockquote class="m_1040405407073143423quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In the case of singletons there's very little difference, but (as I now see Christian has pointed out), with sequences the effect is quite different.<br>
<br>
Also, of course, "!" changes the context item, so<br>
<br>
@address => replace(@postcode, "", "q") works, while<br>
<br>
@address ! replace(@postcode, "", "q") doesn't.<br>
<br>
Michael Kay<br>
Saxonica<br>
<div class="m_1040405407073143423elided-text"><br>
> On 1 Aug 2017, at 13:27, W.S. Hager <<a href="mailto:wshager@gmail.com" target="_blank">wshager@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> Is there any advantage to using the 3.1 arrow operator over the simple map operator?<br>
><br>
> $string => upper-case() => normalize-unicode() => tokenize("\s+")<br>
><br>
> versus<br>
><br>
> $string ! upper-case(.) ! normalize-unicode(.) ! tokenize(.,"\s+")<br>
><br>
> Thanks,<br>
> Wouter<br>
</div>> ______________________________<wbr>_________________<br>
> <a href="mailto:talk@x-query.com" target="_blank">talk@x-query.com</a><br>
> <a href="http://x-query.com/mailman/listinfo/talk" rel="noreferrer" target="_blank">http://x-query.com/mailman/lis<wbr>tinfo/talk</a><br>
<br>
</blockquote></div><br></div></div></div>
</div>