orEmpty method

  1. @useResult
KtSet<T> orEmpty()

Returns this KtSet if it's not null and the empty set otherwise.

Implementation

@useResult
KtSet<T> orEmpty() => this ?? KtSet<T>.empty();