SplitScript reference / Set
Set.contains
Method
Set<T>.contains(value: T) -> bool where T: Equatable
Reports whether an equal value is present.
Values are compared using the element type's equality implementation.
Parameters
value: The value to find.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Check a visited room
let visited = Set.new<String>()
let seenAtrium = visited.contains("Atrium")