Created
February 10, 2020 14:59
-
-
Save lukaszkalnik/0884760d6f8c9bd99b169adfd8162a0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed class Either<out F, out S> | |
data class Failure<out F>(val failure: F) : Either<F, Nothing>() | |
data class Success<out S>(val success: S) : Either<Nothing, S>() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment