user
04/15/2018, 3:02 PMhttps://kotlinlang.slack.com/files/U0N58KE78/FA6NNSTBM/kotlin-rxjava.png▾
Response<User>
into a lambda.
What you need to do is get rid of that {}
parenthesis after the ->
, so you’d have something like:
map { res: Response<User> -> // no parens here
if (...)...
else ...
}