Function is_in

Source
pub fn is_in<'doc>(
    value: PValue<'doc>,
    list: Vec<EValue<'doc>>,
) -> Result<PValue<'doc>>
Available on crate feature filter_doc only.
Expand description

Signature: value | is_in(list: List): Bool

Takes a value and a List list, and returns whether value is in the List

ยงExamples

Let list: [1, 2, 3, 4, 5];:

Then 2 | is_in(list: $list) is true, but 6 | is_in(list: $list) is `false.