YAML Sparse Sequences
YAML Sparse Sequences are sequences (usually large sequences) that may contain only a small number of non-null entries
YAML allows to serialize such sequences using the mapping style with an explicit sequence type family.
For example:
my-sequence: !seq
2: Third entry
4: ~That is converted into an identical in-memory sequence, which has a separate identity:
my-sequence:
- ~
- ~
- Third entry
- ~
- ~