ScopeFunction<T> extension
- on
-
- T
Methods
-
also(
void op(T it)) → T -
Available on T, provided by the ScopeFunction extension
Calls the specified functionopwiththisvalue as its argument and returnsthisvalue. -
apply(
void op()) → T -
Available on T, provided by the ScopeFunction extension
Calls the specified functionopwiththisvalue as its receiver and returnsthisvalue. -
let<
R> (R op(T it)) → R -
Available on T, provided by the ScopeFunction extension
Calls the specified functionopwiththisvalue as its argument and returns its result. -
run<
R> (R op()) → R -
Available on T, provided by the ScopeFunction extension
Calls the specified functionopwiththisvalue as its receiver and returns its result. -
takeIf(
bool test(T it)) → T? -
Available on T, provided by the ScopeFunction extension
Returnsthisvalue if it satisfies the given predicatetestornullif it doesn't. -
takeUnless(
bool test(T it)) → T? -
Available on T, provided by the ScopeFunction extension
Returnsthisvalue if it does not satisfy the given predicatetestornullif it does.