whenTrue

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

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

Sources

Katlib source
Link copied to clipboard