isNullOr

inline fun <T> T?.isNullOr(body: T.() -> Boolean): Boolean

If the receiver is null, answer true. Otherwise run the body with the non-null receiver and answer the resulting Boolean.

Receiver

Either null or a value to use as the receiver of the provided function.

Author

Mark van Gulik

Parameters

body

true iff the receiver is null or the body yields true for it.