Skip to documentation
SplitScript
  • Language
  • Standard library
  • Guides
  • Migration

SplitScript reference / Set / isEmpty

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()
Generated from the SplitScript compiler's documentation catalogs.