String concatenation

JSONiq follows the W3C standard for string concatenation. The following explanations, provided as an informal summary for convenience, are non-normative.

Two strings or more can be concatenated using the concatenation operator.

Example 46. String concatenation

"Captain" || " " || "Kirk"
      

Result (run with Zorba): Captain Kirk


An empty sequence is treated like an empty string.

Example 47. String concatenation with the empty sequence

"Captain" || () || "Kirk"
      

Result (run with Zorba): CaptainKirk


Figure 30. StringConcatExpr

StringConcatExpr