raulraja
fun List<LocalDateTime>.min(): LocalDateTime? = if (this.isEmpty) null else this.reduce { a, b -> a.minBy(b) }