StandardKt<T> extension
- on
-
- T
- @experimental
Methods
-
also(
void block(T)) → T -
Available on T, provided by the StandardKt extension
Calls the specified functionblockwiththisvalue as its argument and returnsthisvalue. -
let<
R> (R block(T)) → R -
Available on T, provided by the StandardKt extension
Calls the specified functionblockwiththisvalue as its argument and returns its result. -
takeIf(
bool predicate(T)) → T? -
Available on T, provided by the StandardKt extension
Returnsthisvalue if it satisfies the givenpredicateornull, if it doesn't. -
takeUnless(
bool predicate(T)) → T? -
Available on T, provided by the StandardKt extension
Returnsthisvalue if it does not satisfy the givenpredicateornull, if it does.