Skip to content

Collections.Set

Uniqueness-preserving collection for membership operations.

  • Set<T>.Add(T value) -> bool
  • Set<T>.Contains(T value) -> bool
  • Set<T>.Remove(T value) -> bool
  • Equality semantics must match Map key semantics.
  • Capacity behavior should be explicit for performance-sensitive code.