cleanup, docs
This commit is contained in:
@@ -13,4 +13,9 @@ Ensures the value is map-shaped, removes the last entry according to `std::map`
|
||||
|
||||
|
||||
:example
|
||||
print("DValue::pop example\n");
|
||||
DValue list;
|
||||
list.set_array();
|
||||
DValue a; a.set("first"); list.push(a);
|
||||
DValue b; b.set("last"); list.push(b);
|
||||
DValue popped = list.pop();
|
||||
print("popped ", popped.to_string(), ", remaining ", list.keys().size(), "\n");
|
||||
|
||||
Reference in New Issue
Block a user