join()
join()
returns a string that contains all given input arguments with the glue
string between them.
The function is variadic. It accepts an arbitrary number of arguments. The second and following arguments are used as input.
Example with basic types:
returns a:b
.
Each input argument can be a string or a number or a node-set. In the latter case, all nodes in the node-set are cast to a string.
Example XML input:
Call with node-set:
returns Alice, Bob
.
Example JSON input:
If an argument is a JSON array, its values will be joined:
returns Alice, Bob
.
Last updated