i have Array.[int...] and Array.invoke{transform} ...
# announcements
j
i have Array.[int...] and Array.invoke{transform} extensions defined. I get an array from vararg array indexes. it works nicely... until.... I actually use them. worse still, together, worse still, with index ranges <horror movie sounds>
Copy code
val right = pivot.get(*(1 until pivotColumns.size).toList().toIntArray()).invoke {
    (it.let { deepTrim(it) as Array<Any?> }.map { (it as? Float) ?: 0f }.sum())
}
i have found overloading index with ranges has some really silly outcomes as well. like the narrow sliver of syntax I am permitted seems to vanish when there becomes megamorphic overloads