in

open fun in(@NonNull needle: Expression, @NonNull haystack: Expression): Expression
open fun in(@NonNull needle: Number, @NonNull haystack: Expression): Expression
open fun in(@NonNull needle: String, @NonNull haystack: Expression): Expression

Retrieves whether an item exists in an array or a substring exists in a string.

Return

true if exists.

Parameters

needle

the item expression

haystack

the array or string expression

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#in">Style specification</a>