unique_ordered#

caput.util.arraytools.unique_ordered(x: collections.abc.Iterable) list[source]#

Take unique values from an iterable with order preserved.

Parameters:
xIterable

An iterable which may or may not contain duplicate values.

Returns:
uniquelist

Unique items in x with order preserved.