SplitScript reference / Set
Set.isEmpty
Method
Set<T>.isEmpty() -> bool where T: Equatable
Reports whether the set contains no values.
This composes the source-defined result from Set.length.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Check a new route
let visited = Set.new<String>()
let routeIsNew = visited.isEmpty()