zak.taccardi
03/23/2017, 8:06 PMsealed class
when
statement, when used within an rx stream?
ex:
private val handleDealOperation: (DealOperation) -> State.Change = {
operation ->
when (operation) {
//how to enforce type safety? `DealOperation` is a sealed class
}
}
Trying to be typesafe in the context of an rx stream.
source.map(handleDealOperation)
Paul Woitaschek
03/24/2017, 8:25 AMzak.taccardi
03/24/2017, 4:01 PMPaul Woitaschek
03/25/2017, 1:14 PM