Join Slack
Powered by
<@U2W6BJ91R> commented on <@U0B8UEMV1>’s file <htt...
# language-proposals
u
user
03/01/2017, 11:44 AM
@okkero
commented on
@pakoito
’s file
https://kotlinlang.slack.com/files/U0B8UEMV1/F4CF6QM2A/-.txt
: Are the type parameters for
Either
covariant? If that's the case then you could do this:
Copy code
fun <T> T.left(): Either<T, Nothing> { return Either.Left(this) }
-.txt
Open in Slack
Previous
Next