| 17 | } |
| 18 | |
| 19 | fun map(x: java.util.function.Function<List<Float>, Number?>): List<Int> { |
| 20 | return data.mapIndexed { i, d -> i to x.apply(d) }.filter { it.second != null }.sortedBy { it.second!!.toDouble() }.map { it.first } |
| 21 | } |
| 22 | } |
no test coverage detected