List Contains
The list::contains
function checks whether a specified element exists within a list.
Syntax
list::contains(<list>, <element>)
Parameters
list
: The input list to search.element
: The element to check for within the list.
Returns
- Boolean:
true
if the element exists in the list, otherwisefalse
.
Example
list::contains([1, 2, 3, 4], 3)
This function is useful for validating the presence of specific values within a dataset.