min property

Coral<E> get min

Returns the minimum element in this collection, or throws StateError if empty.

Implementation

Coral<E> get min => coral.map((source) {
      if (source.isEmpty) throw StateError('No element');
      return source.reduce((a, b) => a.compareTo(b) < 0 ? a : b);
    });