I'd like to delete duplicates in a JSONiq array.
let $x := [1, 2, 4 ,3, 3, 3, 1, 2, 5]
How can I eliminate the duplicates in $x?
let $x := [1, 2, 4 ,3, 3, 3, 1, 2, 5] return [ distinct-values($x[]) ]
2.1m questions
2.1m answers
60 comments
57.0k users