From 97e33a8137d02f823d8227d3d5a0bfd1dc7a3092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20P?= Date: Thu, 26 Mar 2026 12:05:44 +0100 Subject: [PATCH] Add examples for creating objects in snapshot.html --- cheatsheet/snapshot.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cheatsheet/snapshot.html b/cheatsheet/snapshot.html index 00a8a4d..76a9136 100644 --- a/cheatsheet/snapshot.html +++ b/cheatsheet/snapshot.html @@ -172,6 +172,10 @@

Lists

Objects

+
obj = object(key1 = value1, …);
+
  create an object with arguments as keys/values
+
obj = object([["key1", value1], …]);
+
  create an object with list as keys/values
var = obj["name"];
  get value from object by string
var = obj.name;