The
nubInt function removes duplicate
Int values from a list. In particular, it keeps only the first
occurrence of each element. By using an
IntSet internally, it
attains better asymptotics than the standard
nub function.
See also
nubIntOn, a more widely applicable generalization.
Strictness
nubInt is strict in the elements of the list.