alias expr = expressionTuple!(1, 2, 2, 2, 3, 3, 4, 1, 1); static assert(UniqTuple!(`a == b`, expr) == expressionTuple!(1, 2, 3, 4, 1)); static assert(UniqTuple!(`a != b`, expr) == expressionTuple!(1, 1, 1));
Analog of $(STDREF algorithm, uniq) for generic tuples except pred must be explicitly specified.
Creates a generic tuple comprised of unique consecutive elemetns of A.
Equivalence of elements is assessed by using a binary predicate pred.