Documentation on fold-left

<fweenink-9kZD4fURD3VmR6Xm/[email protected]> Wed, 25 Aug 2021 11:28:50 +0200
Newsgroups gmane.text.xml.saxon.help
Message-ID <[email protected]>
This is a multipart message in MIME format.

--===============2498802941084500810==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0001_01D799A4.60C66520"
Content-Language: en-us

This is a multipart message in MIME format.

------=_NextPart_000_0001_01D799A4.60C66520
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Dear Saxon,

=20

When working with fold-left and fold-right, I noticed that the signature =
of the supplied function is not the same.

=20

Currently the documentation on saxonica.com of fold-left shows the same =
signature as fold-right. =
https://www.saxonica.com/documentation10/index.html#!functions/fn/fold-le=
ft

=20

It shows the accumulator as last:

=20

function(item(), item()*)

=20

But the accumulator should be the first parameter:

=20

function(item()*, item())

=20

Link to the spec:  =
https://www.w3.org/TR/xpath-functions-31/#func-fold-left

=20

Regards,

Frank


------=_NextPart_000_0001_01D799A4.60C66520
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 15 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
code
	{mso-style-priority:99;
	font-family:"Courier New";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body link=3D"#0563C1" =
vlink=3D"#954F72" style=3D'word-wrap:break-word'><div =
class=3DWordSection1><p class=3DMsoNormal><span lang=3DEN-US>Dear =
Saxon,<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>When working with fold-left and fold-right, I noticed that =
the signature of the supplied function is not the =
same.<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>Currently the documentation on saxonica.com of fold-left =
shows the same signature as fold-right. </span><a =
href=3D"https://www.saxonica.com/documentation10/index.html#!functions/fn=
/fold-left">https://www.saxonica.com/documentation10/index.html#!function=
s/fn/fold-left</a><o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal><span =
lang=3DEN-US>It shows the accumulator as last:<o:p></o:p></span></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>function(item(), item()*)<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal><span =
lang=3DEN-US>But the accumulator should be the first =
parameter:<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><code><span =
style=3D'font-size:10.0pt'>function(item()*, =
item())</span></code><o:p></o:p></p><p class=3DMsoNormal><span =
lang=3DEN-US><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>Link to the spec:=C2=A0 </span><a =
href=3D"https://www.w3.org/TR/xpath-functions-31/#func-fold-left">https:/=
/www.w3.org/TR/xpath-functions-31/#func-fold-left</a><o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal><span =
lang=3DEN-US>Regards,<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>Frank<o:p></o:p></span></p></div></body></html>
------=_NextPart_000_0001_01D799A4.60C66520--



--===============2498802941084500810==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============2498802941084500810==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
--===============2498802941084500810==--