list contains
(
list
,
item
)
is in list
Type:
For any types
t
where Equatable t
(
[
t
]
,
t
)
->
Boolean
Checks if the item is in the list.
Examples
Click an example to insert it
list contains
([
1, 2, 3
]
, 2
)
→
true
list contains
([
"a", "b", "c"
]
, "d"
)
→
false