Selector5

public class Selector5<State, S1, S2, S3, S4, S5, Value>: Selector<State, Value> where
    S1: SelectorProtocol, S1.State == State,
    S2: SelectorProtocol, S2.State == State,
    S3: SelectorProtocol, S3.State == State,
    S4: SelectorProtocol, S4.State == State,
    S5: SelectorProtocol, S5.State == State

A Selector created from five Selectors and a projector function.

  • A pure function which takes the Values from the other Selectors and returns a new Value.

    Declaration

    Swift

    public let projector: (S1.Value, S2.Value, S3.Value, S4.Value, S5.Value) -> Value
  • Creates a Selector from five Selectors and a projector function.

    Declaration

    Swift

    public init(_ selector1: S1,
                _ selector2: S2,
                _ selector3: S3,
                _ selector4: S4,
                _ selector5: S5,
                _ projector: @escaping (S1.Value, S2.Value, S3.Value, S4.Value, S5.Value) -> Value)

    Parameters

    selector1

    The first Selector

    selector2

    The second Selector

    selector3

    The third Selector

    selector4

    The fourth Selector

    selector5

    The fifth Selector

    projector

    The closure to pass the values from the Selectors to