Selector1

public class Selector1<State, S1, Value>: Selector<State, Value> where
    S1: SelectorProtocol, S1.State == State

A Selector created from a Selectors and a projector function.

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

    Declaration

    Swift

    public let projector: (S1.Value) -> Value
  • Creates a Selector from a Selector and a projector function.

    Declaration

    Swift

    public init(_ selector1: S1, _ projector: @escaping (S1.Value) -> Value)

    Parameters

    selector1

    The first Selector

    projector

    The closure to pass the value from the Selector to

  • Creates a Selector from a Selector and a projector function.

    Declaration

    Swift

    public convenience init(_ selector1: S1, keyPath: KeyPath<S1.Value, Value>)

    Parameters

    selector1

    The first Selector

    projector

    The closure to pass the value from the Selector to