const class yaml::YamlList
sys::Obj yaml::YamlObj yaml::YamlList
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]
- each
-
Iterate the list items
- get
-
@Operator
YamlObj get(Int index)Get item from the list
- make
-
new make(YamlObj[] val, Str tag := "!", FileLoc loc := FileLoc.unknown)
Creates a YamlList with the list
val
as content, found at locationloc
, withtag
as its tag. - val
-
virtual override YamlObj[] val()
Content value as a list