Hey guys, suppose I have a function like: `fun isG...
# announcements
g
Hey guys, suppose I have a function like:
fun isGood(): Boolean
. I want to call this function and do something if it returns false, like:
isGood() or log.warn("was bad")
The problem is that log.warn() returns Unit, so the compiler complains because it wants a Boolean. Does anyone has a tip on an idiomatic way to do this in Kotlin?