Contains functions¶
The Contains family is made of a single function, testing whether one or more elements belong to a collection or to an interval.
The following function is available:
See also
See Constraint Programming functions for a general explanation on how to read the signature tables below.
contains¶
Returns 1 if the given collection, array or interval contains the specified value or interval, and 0 otherwise.
Parameters
Signature 1 (dimension of Argument 1: 0 or 1)
Parameter |
Description |
Requirement |
|---|---|---|
Argument 1 |
collection, array of collections of the same type of dimension 1, array of constants of dimension 1, interval |
Mandatory |
Argument 2 |
integer (dimension 0 or 1) |
Mandatory |
Signature 2 (dimension of Argument 1: 0 or 1)
Parameter |
Description |
Requirement |
|---|---|---|
Argument 1 |
interval |
Mandatory |
Argument 2 |
interval (dimension 0 or 1) |
Mandatory |