This commit is contained in:
tursom 2022-12-01 16:17:01 +08:00
parent 78b79bedec
commit 225adfa9fc

View File

@ -440,7 +440,7 @@ fun Any.serialize(): ByteArray {
}
/**
* 使用 condition 做条件判断如果返回 true 则使用 then 生成结果否则范湖自身
* 使用 condition 做条件判断如果返回 true 则使用 then 生成结果否则返回自身
*/
inline fun <T> T.ifThen(condition: T.() -> Boolean, then: () -> T) = if (condition()) then() else this