uniqueElements

fun uniqueElements(): SequenceArbitrary<T>

Add the constraint that elements of the generated iterator must be unique, i.e. no two elements must return true when being compared using Object.equals.

The constraint can be combined with other .uniqueElements constraints.

Return

new arbitrary instance


fun uniqueElements(by: Function<T, Any>): SequenceArbitrary<T>

Add the constraint that elements of the generated iterator must be unique relating to an element's "feature" being extracted using the by function. The extracted features are being compared using Object.equals.

The constraint can be combined with other .uniqueElements constraints.

Return

new arbitrary instance