String module

is_any

procedure · 1 overloadSource

Whether the byte c appears in chars.

is_any :: (c: u8, chars: string) -> bool

Parameters

c: u8
chars: string

Returns

bool
ExampleOpen in playground ↗
assert(is_any(#char "b", "abc"));
assert(!is_any(#char "z", "abc"));

See also