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[]) ]
1.4m articles
1.4m replys
5 comments
57.0k users