From 6edbfdc49728a475cf157791f3fd2da6337deb7c Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Mon, 30 Mar 2026 18:26:24 -0700 Subject: [PATCH] Add object(). Contributions from @pkriens and @yukelele. --- cheatsheet/snapshot.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cheatsheet/snapshot.html b/cheatsheet/snapshot.html index 8b63434..70e5091 100644 --- a/cheatsheet/snapshot.html +++ b/cheatsheet/snapshot.html @@ -171,12 +171,13 @@

Lists

Objects

-
-
var = obj["name"];
-
  get value from object by string
-
var = obj.name;
-
  get value from object by identifier
-
+ obj = object(…,name=value,…); + obj = object(…,[…,["name",value],…],…); + obj = object(…,object,…); + obj = object(…,[…,["name"],…],…); + var = obj.name; + var = obj["name"]; + has_key(object,"name");

Boolean operations