BoundVar

public class BoundVar<F, A> where F : Monad

A bound variable is a variable to be used in a monad comprehesion to bind the produced values by a monadic effect.

  • Makes a bound variable.

    Declaration

    Swift

    public static func make() -> BoundVar<F, A>

    Return Value

    A bound variable.

  • Obtains the value that has been bound to this variable.

    If no value has been bound to the variable when this property is invoked, a fatal error is triggered.

    Declaration

    Swift

    public var get: A { get }