StandardKt<T> extension
- on
-
- T
- @experimental
Methods
-
also(
void block(T)) → T -
Calls the specified function
block
withthis
value as its argument and returnsthis
value. -
let<
R> (R block(T)) → R -
Calls the specified function
block
withthis
value as its argument and returns its result. -
takeIf(
bool predicate(T)) → T? -
Returns
this
value if it satisfies the givenpredicate
ornull
, if it doesn't. -
takeUnless(
bool predicate(T)) → T? -
Returns
this
value if it does not satisfy the givenpredicate
ornull
, if it does.