https://kotlinlang.org logo
#tornadofx
Title
# tornadofx
h

hudsonb

01/03/2019, 3:36 AM
You showed:
Copy code
private val positionsById = BoardPositions::class.java.getResource("positions.csv").readText().lines()
            .asSequence()
            .map { it.split(",") }
            .map { Position(it[0].toInt(), it[1].toDouble(), it[2].toDouble()) }
            .toMap()
Which I don't think would even compile?