[ library(ic_symbolic) | Reference Manual | Alphabetic Index ]
occurrences(+Value, +List, ?N)
Value occurs N times in List
- domain value
- list of variables or domain values
- integer variable or integer
Constrains its arguments such that Value occurs exactly N times
This is implemented by mapping onto ic_global:occurrences/3.
All list elements and Value must be variables or values of the
same domain. If one or more of them are domain-less, they will
be given the same domain as the others.
This predicate is sensitive to its module context (tool predicate, see @/2).
ic_global : occurrences / 3