Objects
Last updated
Methods you can call on any object (a string-keyed map). Read values with o.key, o["key"] or o.item(key).
object user = { name: "Ada", age: 36 }
log user.name // "Ada"
log user.getKeys() // ["name", "age"]
log user.len // 2Keys, Values & Membership - getKeys, getValues, getEntries, contains.
Modifying & Converting - insert, delete, omit, pick, flip, clone, toMap, toStr.
.insertand.deletemutate the object in place..omit,.pick,.flipand.clonereturn a new object and leave the original untouched.
Objects also support the universal methods .len (a property), .getType(), .item(key) - see Type & conversion methods. For richer key/value structures with insertion order and non-string keys, see the map package.
Last updated