Join Slack
Powered by
For filtering true booleans: :one: ```.filter { it...
# codereview
a
arekolek
06/25/2020, 2:26 PM
For filtering true booleans: 1️⃣
Copy code
.filter { it }
or 2️⃣
Copy code
.filter(true::equals)
1️⃣ 18
2️⃣ 3
p
Paul Woitaschek
06/25/2020, 4:20 PM
Create an extension function called onlyTrue?
👍 1
a
arekolek
06/25/2020, 4:47 PM
I wouldn't want to go that way, this time I'm asking in relation to
Single<Boolean>
and there are so many other types that have a
filter(T -> Boolean)
function
Open in Slack
Previous
Next