I want to maintain list of value, when any output comes it will check under the list if that value is in the list it will not add that value
otherwise it will add value into the list.
I write a simple query like
let $a := for $i in 1 to 10
let $b := if(contains($a,$i))then()else($i)
here every iteration will give output to $a, so at every iteration i check whether current number is present under the output list ?
I am expecting something like whenever I print $a it will give below output
1 2 3 4 5 6 7 8 9
10 should not be there because it contains 1.