anyItem property

T anyItem

Returns any item from the set. This is useful if you need to read some property that you know all items in the set have.

Note: getting anyItem is faster that getting first or last.

Implementation

T get anyItem {
  return _s.anyItem;
}