-
-
Save raamcosta/18072e436b7bd69a54298a7037335459 to your computer and use it in GitHub Desktop.
This file contains 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 Result<out S, out E> { | |
data class Success<out S>(val data: S) : Result<S, Nothing>() | |
data class Error<out E>(val error: E) : Result<Nothing, E>() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment