holgerbrandl
05/02/2023, 7:21 PMdata class BendScore(val foo:String, val bar: Array<Int>)
val scores = listOf(BendScore("A", arrayOf(1,2,3)), BendScore("A", arrayOf(4,5,6)))
scores.toDataFrame().print()
Nikita Klimenko [JB]
05/02/2023, 9:13 PMNikita Klimenko [JB]
05/02/2023, 9:19 PMNikita Klimenko [JB]
05/02/2023, 9:20 PMscores.toDataFrame()
.split(BendScore::bar)
.by { it.asList() }
.into()
Nikita Klimenko [JB]
05/02/2023, 9:21 PMscores.toDataFrame()
.split(BendScore::bar)
.by { it.asList() }
.into { "score$it" }
holgerbrandl
05/03/2023, 5:38 AMroman.belov
05/03/2023, 1:46 PMsplit
and unfold
functions do basically the same thing, probably it's worth to think how unify the API for them