For the complete documentation index, see llms.txt. This page is also available as Markdown.

Objects

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         // 2

In this section

.insert and .delete mutate the object in place. .omit, .pick, .flip and .clone return 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