ConsulKotlinEsqueOps<T> extension
- on
-
- T
Methods
-
also(
dynamic func(T)) → T -
Available on T, provided by the ConsulKotlinEsqueOps extension
Kotlin-esque "operator" to executefunconthis, but returningthis. -
let<
R> (R transform(T)) → R -
Available on T, provided by the ConsulKotlinEsqueOps extension
Kotlin-esque "operator" to executetransformonthis. 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 takethisifconditionistrue, or else returnnull. -
takeIf_(
bool condition(T)) → T? -
Available on T, provided by the ConsulKotlinEsqueOps extension
Kotlin-esque "operator" to takethisifconditionistrue, or else returnnull.