min static method

Hora min(
  1. Iterable<Hora> dates
)

Gets the minimum from a list of dates.

Throws StateError if the list is empty.

Implementation

static Hora min(Iterable<Hora> dates) {
  if (dates.isEmpty) {
    throw StateError('Cannot find min of empty collection');
  }
  return dates.reduce(min2);
}