Specifications Index   <<   >>


 

ISO/IEC 13751:2001(E), page 136:

If comparison-tolerance is nil signal implicit-error.
If the rank of B is greater-than one, signal rank-error.
Set B1 to an empty-list of the type of B.
Set B2 to the ravel-list of B.
Repeat:
    If B2 is empty, return B1.
    Set T to the vector-item one of B2.
    Append T to B1.
    Remove from B2 all items tolerantly-equal-to T, within comparison-tolerance.
(End of Repeated Block).

J Introduction and Dictionary, entry on nub (unique):

[The] nub is found by selecting the leading item, suppressing from the argument all items tolerantly [matching] it, selecting the next remaining item, and so on.