Skip to content

Add YAML tag for flattening arrays #4

@robbiemcmichael

Description

@robbiemcmichael

YAML allows objects to merged with <<, but it has no way of flattening arrays. Being able to flatten arrays would allow a subset of the elements to be defined by a Dhall expression.

Proposed syntax:

array: !flatten
  - - 1
    - 2
  - !dhall |
    [3, 4]

This should evaluate to:

array:
  - 1
  - 2
  - 3
  - 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions