SelectorProtocol

public protocol SelectorProtocol

Something which selects a Value from the specified State.

  • The input for the Selector.

    Declaration

    Swift

    associatedtype State
  • The output of the Selector,

    Declaration

    Swift

    associatedtype Value
  • A pure function which takes a State and returns a Value from it.

    Declaration

    Swift

    func map(_ state: State) -> Value

    Parameters

    state

    The State to map

    Return Value

    The Value mapped from the State