Link Search Menu Expand Document


Arrays are defined with square brackets, similarly to JSON. Values of the array are comma-separated

array = ["value1", "value2"]


Arrays allow line breaks, whitespace and comments

array = [
  # This is a comment

Mixing data types

Arrays allow mixing of different data types

array = [
  # This is a comment
    "type": "map"

Directive support

Arrays can be piped into directives

array = [
] |> @directive

Elements of the array can also be piped into directibes

array = [
  "el1" |> @directive,
  "el2" |> @directive