Lambda

public struct Lambda: Fn

Lambda creates an anonymous function that binds one or more variables in the expression at expr. The lambda form is only permitted as a direct argument to a form which applies it. It cannot be bound to a variable.

Reference.

  • Declaration

    Swift

    public init(vars: Expr..., in expr: Expr)

    Parameters

    vars

    Variables.

    expr

    Expression in which the variables are bound.

  • Declaration

    Swift

    public init(_ lambda: (Expr) -> Expr)

    Parameters

    lambda

    Lambda expression represented by a Swift closure.

  • Declaration

    Swift

    public init(_ lambda: ((Expr, Expr)) -> Expr)

    Parameters

    lambda

    Lambda expression represented by a swift closure.

  • Declaration

    Swift

    public init(_ lambda: ((Expr, Expr, Expr)) -> Expr)

    Parameters

    lambda

    Lambda expression represented by a Swift closure.

  • Declaration

    Swift

    public init(_ lambda: ((Expr, Expr, Expr, Expr)) -> Expr)

    Parameters

    lambda

    Lambda expression represented by a Swift closure.

  • Declaration

    Swift

    public init(_ lambda: ((Expr, Expr, Expr, Expr, Expr)) -> Expr)

    Parameters

    lambda

    Lambda expression represented by a Swift closure.