@User uploaded a file:
Untitled and commented: Hi everyone, I am new to Kotlin. Is there a way to write this in FP style ? I started with actions.asSequence().forEach { it.execute(this) } but knowing that the processing should stop on the fist error this won't work. Also I am trying to avoid throwing an Exception.