Do

public struct Do: Fn

Do sequentially evaluates its arguments, and returns the evaluation of the last expression. If no expressions are provided, do returns an error.

Reference.

  • Declaration

    Swift

    public init(_ exprs: Expr...)

    Parameters

    exprs

    Expressions to evaluate.