Var

public struct Var: Fn

A Var expression refers to the value of a variable varname in the current lexical scope. Referring to a variable that is not in scope results in an “unbound variable” error.

Reference.

  • Declaration

    Swift

    public init(_ name: String)

    Parameters

    name

    variable name.