Create a new Selector based on the given selector(s) and a function
that computes a new value from the result of the given selector(s).
Multiple selectors may be passed (see definitions below),
then their results are passed to the result computation function
computeResult in the same order.
Type Parameters
State
Type of the state passed to the selectors
and to the newly created selector.
Result
Type of the result of the newly created selector.
X
Type of the return value of the selector.
If multiple selectors are passed, their type parameters are named
XN with N from 1 to 8.
Create a new Selector based on the given selector(s) and a function that computes a new value from the result of the given selector(s).
Multiple selectors may be passed (see definitions below), then their results are passed to the result computation function computeResult in the same order.