SeenBefore:
Filter:
crucial-library/Classes (extension) | Libraries > crucial > Constraints

SeenBefore
ExtensionExtension

eliminates duplicates by saving a history of objects it has tested

Description

Most constraints do not have any state or internal variables. This one saves each object in a history list and returns false if it has already seen an object.

This can be used to eliminate duplicates.

Class Methods

.new

No arguments

Instance Methods

.history

.value

Arguments:

path

.reset