json:array-pop( $array as json:array ) as item()*
Pop a value from the end of the array.
Parameters | |
---|---|
array | An array. |
let $a := json:to-array((1, 2, 3)) let $v := json:array-pop($a) return (xdmp:to-json($a), $v) => [1, 2] 3
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.