whether

inline fun <T> Boolean.whether(yes: () -> T, no: () -> T): T