Is there a Mathematica function that provides results equivalent to the unique()
function in MATLAB? I realize I could use the Union[]
function to obtain the unique elements of a list, but I would like something equivalent to the three-result version of the function that provides index arrays that map between the input array and the array of unique values.
If there is nothing built in, is there an implementation of that function available somewhere? Does someone here know how to build it?