CoSum

public typealias CoSum<F, G, A> = Co<SumPartial<F, G>, A> where F : Comonad, G : Comonad
  • Creates a CoSum that can select the left side of a Sum.

    Declaration

    Swift

    static func moveLeft<F, G>() -> CoSum<F, G, Void> where W == SumPartial<F, G>, A == Void, F : Comonad, G : Comonad

    Return Value

    A CoSum that selects the left side of a Sum.

  • Creates a CoSum that can select the right side of a Sum.

    Declaration

    Swift

    static func moveRight<F, G>() -> CoSum<F, G, Void> where W == SumPartial<F, G>, A == Void, F : Comonad, G : Comonad

    Return Value

    A CoSum that selects the right side of a Sum.