https://kotlinlang.org logo
m

mbuhot

02/13/2017, 10:33 PM
@okkero Thats pretty close. Will
takeIf
apply to
this
if not called with an explicit receiver?
Copy code
result = takeIf { config.enableSomeFeature() } ?.run { someAction() }