$set1.containsAll($set2)
Checks if set1 contains all elements of set2.
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| set1 | Set | A set for which it is to be checked whether all elements from set2 are contained. |
yes | |
| set2 | Set | A set for which to check if all elements in set1 are included. |
yes |
Type: Boolean
true, if all elements from set2 are included in set1.
list(1, 2, 3, 4).containsAll(list(1, 2))
Output: true
list(1, 2, 3, 4).containsAll(list(1, 2, 5, 6))
Output: false
list(1, 2, 3, 4).containsAll(list(5, 6, 7))
Output: false