uhe
04/09/2016, 1:18 PMcommands.listIterator().run {
forEach {
when (it) {
is Clear -> plot.clear()
is AddPoints -> plot.addPoints(it.x, it.y)
is AddPoint -> plot.addPoint(it.x, it.y)
}
remove()
}
}