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