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