Robby
10/01/2020, 12:55 PMVampire
10/01/2020, 1:08 PMflosch
10/01/2020, 1:24 PMvar number: Number = 0
check(number is Int)
number = 0.0
check(number is Double)
Casey Brooks
10/01/2020, 1:56 PMEither
type to encapsulate a variable that could be an Int or a Double. Arrow has one (https://arrow-kt.io/docs/apidocs/arrow-core-data/arrow.core/-either/) but it’s probably easier to just write your own Either
sealed class rather than bringing in all of Arrow just for this