egslava
fun lets(command: Command) = when(command){ is Command.Clear -> throw InvalidParameterException("Please use Plot.clear() for clearing") }