Arrays
Arrays are defined with square brackets, similarly to JSON. Values of the array are comma-separated
array = ["value1", "value2"]
Multi-line
Arrays allow line breaks, whitespace and comments
array = [
# This is a comment
"value1",
"value2"
]
Mixing data types
Arrays allow mixing of different data types
array = [
# This is a comment
"string",
123,
{
"type": "map"
}
]
Directive support
Arrays can be piped into directives
array = [
"el1",
"el2"
] |> @directive
Elements of the array can also be piped into directibes
array = [
"el1" |> @directive,
"el2" |> @directive
]