redrield
09/23/2018, 10:21 PMtask.command.requiredSubsystems.asSequence().filter { msg.shouldStartDefault(it) }
.mapNotNull(Subsystem::defaultCommand).toList()
.forEach {
handle(Message.Start(it))
}
gildor
09/24/2018, 1:45 AMforEach
available for sequences, no need to convert to list