Michael de Kaste
inline fun <T> Collection<T>.associateByPeriod(keySelector: (T) -> Period<LocalDate>): LocalDatePeriodMap<T?> = ... inline fun <T> Collection<T>.associateByPeriod(keySelector: (T) -> Period<LocalDateTime>): LocalDateTimePeriodMap<T?> = ...
list.associateByPeriod{ it.period } //period being a Period<LocalDateTime>
Overload resolution ambiguity. All these functions match.
Youssef Shoaib [MOD]
@OverloadResolutionByLambdaReturnType
A modern programming language that makes developers happier.