API Reference › Set › Set.has
method

Set.has

Set.has(s, key) -> bool

Returns true when key is a member of the set.

Example

program Demo {
  handler Step phase Update {
    if Set.has(tags, "poison") { tick() }
  }
}
← All symbols