Re: [FO31] array:join – misleading name?

Just for the record: this comment was captured at

https://www.w3.org/Bugs/Public/show_bug.cgi?id=30025

where you can find the record of the Working Group's deliberations.

Many thanks for taking the time to comment on the specification.

Michael Kay
Saxonica
for the XSL and XQuery Working Groups


> On 30 Nov 2016, at 16:20, Thomas Fischer <fischer.th@gmail.com> wrote:
> 
> Hi,
> The documentation for array:join says:
>     Concatenates the contents of several arrays
> and "concat" is a common term for such functionality for arrays, whereas "join" is common to join the elements of an array into a string, separated by a specified separator.
> 
> Therefore I would propose:
> 
>   array:join($array as array(*)) as xs:string
>   array:join($array as array(*), $separator as xs:string) as xs:string
> 
>   array:concat($arrays as array(*)*) as array(*)
> 
> salute
> Th. Fischer

Received on Thursday, 16 March 2017 09:55:29 UTC