ConsulKotlinEsqueOps<T> extension
- on
-
- T
Methods
-
also(
dynamic func(T)) → T -
Available on T, provided by the ConsulKotlinEsqueOps extension
Kotlin-esque "operator" to executefunc
onthis
, but returningthis
. -
let<
R> (R transform(T)) → R -
Available on T, provided by the ConsulKotlinEsqueOps extension
Kotlin-esque "operator" to executetransform
onthis
. Allows?.let(...)
instead ofif (something != null) something."transform"
in case the latter reads worse. -
takeIf(
bool condition) → T? -
Available on T, provided by the ConsulKotlinEsqueOps extension
Kotlin-esque "operator" to takethis
ifcondition
istrue
, or else returnnull
. -
takeIf_(
bool condition(T)) → T? -
Available on T, provided by the ConsulKotlinEsqueOps extension
Kotlin-esque "operator" to takethis
ifcondition
istrue
, or else returnnull
.