Atom - ŒQ - Distinct Sieve

Characters: Π, Q

Tags: miscellaneous , array

Arity: monadic

This atom is monadic, which means it takes one argument.


Replace the first occurrence of each element with 1 and all subsequent ones with 0.


Replicating (x) a list by the distinct sieve will uniquify the list. That is, xŒQ$ is equivalent to Q (Uniquify).