Package fr.stardustenterprises.stargrad.dsl

Functions

Link copied to clipboard
inline fun <T> T.applyIf(if: Boolean, block: T.() -> Unit): T

Applies the given block if the if value is true, only return the object itself if not.

inline fun <T> T.applyIf(ifPredicate: T.() -> Boolean, block: T.() -> Unit): T

Applies the given block if the ifPredicate results to true, only return the object itself if not.