<div dir="ltr"><div class="gmail_default" style="font-size:small">The thing that convinced me I cared about the arrow operator was</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">(//@someFlag) => distinct-values()</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">since there's no other way to avoid having to make whatever lump of logic is really there for //@someFlag the explicit operand of the distinct-values() and I often find I want to test that the lump of logic returns the kind and number of thing I expect before reducing the sequence to its distinct values.  Using the arrow operator results in something that's much nicer to read.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 1, 2017 at 12:58 PM, Michael Kay <span dir="ltr"><<a href="mailto:mike@saxonica.com" target="_blank">mike@saxonica.com</a>></span> wrote:<br><blockquote class="gmail_quote" 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>
<span class="HOEnZb"><font color="#888888"><br>
Michael Kay<br>
Saxonica<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> On 1 Aug 2017, at 13:27, W.S. Hager <<a href="mailto:wshager@gmail.com">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></div><div class="HOEnZb"><div class="h5">> ______________________________<wbr>_________________<br>
> <a href="mailto:talk@x-query.com">talk@x-query.com</a><br>
> <a href="http://x-query.com/mailman/listinfo/talk" rel="noreferrer" target="_blank">http://x-query.com/mailman/<wbr>listinfo/talk</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
<a href="mailto:talk@x-query.com">talk@x-query.com</a><br>
<a href="http://x-query.com/mailman/listinfo/talk" rel="noreferrer" target="_blank">http://x-query.com/mailman/<wbr>listinfo/talk</a><br>
</div></div></blockquote></div><br></div>