YamlList
const class YamlList : YamlObj
A YamlObj whose content always has the type YamlObj[]. For example, each item on the list below is itself a list:
- - a - b - c - [a, b, c]
Creates a YamlList with the list val as content, found at location loc, with tag as its tag
Content value as a list
Get item from the list
Iterate the list items
Void each(|YamlObj| f)
Iterate the list items
@Operator
YamlObj get(Int index)
Get item from the list
new make(YamlObj[] val, Str tag, FileLoc loc)
Creates a YamlList with the list val as content, found at location loc, with tag as its tag.
virtual YamlObj[] val()
Content value as a list