egslava
04/09/2016, 12:59 PMsynchronizedList(mutableList())
). I want to process command and remove it. Now I do it that way:
commands.removeAll {
when (it){
is Clear -> plot.clear()
is AddPoints -> plot.addPoints(it.x, it.y)
is AddPoint -> plot.addPoint(it.x, it.y)
}
true
}
Is that ok?