toSet method

Kind<Set<T>> toSet()

Constructs Kind for Set<T>.

Implementation

Kind<Set<T>> toSet() =>
    (_expandoForToSet[this] ??= SetKind<T>(elementKind: this)) as SetKind<T>;