~/bend-docscommunity

shared/sets.bend checks

raw source on the hub · import bend-lint-api@0.2.0.0/shared/sets.bend as Sets

Set helpers. Base's Set.has gives the set back beside its answer; these give the answer alone.

1 import
import Base

Definitions

def has source · line 4 · raw

@set:Set -> @key:String -> Bool

def has_any source · line 8 · raw

@keys:List<&2, String> -> @+set:Set -> @found:Bool -> Bool

Whether one of keys is in set, or found.