Gcode.Model.Expr.List (gcode v1.0.1)

Represents an array expression in G-code.

Summary

Functions

Initialise a List from a boolean value.

Push an expressions onto the list.

Types

@type t() :: %Gcode.Model.Expr.List{elements: [Gcode.Model.Expr.t()]}

Functions

@spec init() :: Gcode.Result.t(t())

Initialise a List from a boolean value.

Link to this function

push(list, expr)

@spec push(t(), Gcode.Model.Expr.t()) :: Gcode.Result.t(t())

Push an expressions onto the list.