Arrays can be constructed from literal arrays &/or expressions.

Expressions get replaced and type coerced (as required) on evaluation i.e. interpolation is supported.

Examples

Literal

- item1
- item2

Object property ref

given:

  • someObject
    • is in scope
    • is type coercible to object
  • arrayProperty
    • is a property of someObject
    • is type coercible to array
$(someObject.arrayProperty)

Embedded dir entry ref

given:

  • /array.json
    • is embedded in op
    • is type coercible to array
$(/array.json)

Interpolated

given:

  • /someDir/file2.txt is embedded in op
  • someObject
    • is in scope
    • is type coercible to object
    • has property someProperty
- string $(/someDir/file2.txt)
- $(someObject.someProperty)
- [ sub, array, 2]

results matching ""

    No results matching ""