std.tbl.contains

std.tbl

contains(t, element, fuzzy) -> index

Check if an array contains an element, with optional fuzzy matching

Searches for element in the array t. If fuzzy is true and both element and array items are strings, performs pattern matching instead of exact comparison.