from the source ``` public inline fun <T> T....
# announcements
m
from the source
Copy code
public inline fun <T> T.takeIf(predicate: (T) -> Boolean): T? = if (predicate(this)) this else null
note that the return type is
T?