MonadCombine

public protocol MonadCombine : Alternative, MonadFilter

A MonadCombine has the capabilities of MonadFilter and Alternative together.

  • unite(_:) Extension method

    Fold over the inner structure to combine all of the values with our combine method inherited from `MonoidK.

    Declaration

    Swift

    public static func unite<G, A>(_ fga: Kind<Self, Kind<G, A>>) -> Kind<Self, A> where G : Foldable

    Parameters

    fga

    Nested contexts value.

    Return Value

    A value in the context implementing this instance where the inner context has been folded.