MonadFilter

public protocol MonadFilter : FunctorFilter, Monad

A MonadFilter is a Monad with FunctorFilter capabilities. It also provides functionality to create a value that represents an empty element in the context implementing an instance of this typeclass.

Implementing this typeclass automatically derives an implementation for FunctorFilter.mapFilter.

  • Obtains an empty element in the context implementing this instance.

    Declaration

    Swift

    static func empty<A>() -> Kind<Self, A>

    Return Value

    Empty element.