whenTrue

inline fun Boolean.whenTrue(block: () -> Unit): Boolean

Executes block iff this (result of previous method) is true. Returns given Boolean.

Sources

Link copied to clipboard