I think the code sample given in https://docs.basex.org/13/XQuery_4.0#destructuring as

let ${$x, $y} := { 'x': 1, 'y': 2 }
return (
  'Value of x', $x,
  'Value of z', $y,
  'Value of z (empty sequence)', $z
)

needs to be corrected to

let ${$x, $y, $z} := { 'x': 1, 'y': 2 }
return (
  'Value of x', $x,
  'Value of z', $y,
  'Value of z (empty sequence)', $z
)

Reply via email to