simon.vergauwen
02/05/2021, 10:05 AMpublic fun <T> maxOf(a: T, vararg other: T, comparator: Comparator<in T>): T is conflicting with public actual fun <T : Comparable<T>> maxOf(a: T, vararg other: T): T for me 🤔 Even when T isn't : Comparable<T>. This is only fixed for me when moving the comparator parameter before the vararg one. Is this a known issue?
I'm trying to define sort for Comparable and Comparator in Arrow to deprecate the Order typeclass into something more Kotlin idiomatic, but following the same patterns as the Kotlin Std I ran into this issue when writing tests.ilya.gorbunov
02/05/2021, 4:21 PMmaxOf(v1, v2, v3, v4, comparator = ...)simon.vergauwen
02/07/2021, 8:48 PMmaxOf(v1, v2, v4, v4, comparatorV) but that results in a type missmatch.ilya.gorbunov
02/07/2021, 9:19 PMString.split that takes vararg of delimiters in the first place: string.split(",", ";", limit = 2)simon.vergauwen
02/08/2021, 9:11 AM