FunctionComposition<A, R> extension
A set of utilities for composing single-argument functions together.
- on
-
- R Function(A)
Methods
-
also(
void func(R value)) → R Function(A value) -
Calls this function, then calls
func
with the result. Unlike then(),func
is not expected to return a value. -
then<
S> (S func(R value)) → S Function(A value) -
Calls this function, then calls
func
with that value, and returnsfunc
's result. Similar to function composition seen in various functional languages.