minOption method

Option<A> minOption(
  1. Order<A> order
)

Finds the largest element in this collection according to the given Order.

If this collection is empty, None is returned.

Implementation

Option<A> minOption(Order<A> order) => switch (knownSize) {
      0 => none(),
      _ => _reduceOptionIterator(iterator, order.min),
    };