fun <T> Iterable<T>.dedupe(): List<T> { if (count() == 0) return toList() return fold(listOf(first())) { acc, v -> if (v != acc.last()) acc ...
確定! 回上一頁