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

SeenBefore : AbstractConstraint : Object
ExtensionExtension

eliminates duplicates by saving a history of objects it has tested
Subclasses: CountLimit

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

SeenBefore.new

No arguments

Inherited class methods

Instance Methods

.history

.history = value

.value(path)

Arguments:

path

.reset

Inherited instance methods