From ec8fe5a7956060ad411ce64bb093b46b3955c501 Mon Sep 17 00:00:00 2001 From: Shautvast Date: Sun, 9 Nov 2025 22:00:05 +0100 Subject: [PATCH] Indexing into lists/maps. First test with literal list completed. When it's assigned to a var if fails --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6b9e826..2833611 100644 --- a/README.md +++ b/README.md @@ -163,14 +163,18 @@ let c = b + "world" ``` **dates and time** -Create a date with +Create a date literal with ``` -let d:date = "" +let d:date = d"1979-12-16 16:12:19.000 +01:00" ``` +more date functions will have to follow. + **lists** ``` let list = ["foo", "bar", 1, 1.0] +print(list[1]) +=> "bar" ``` No generic types (yet). A list can hold any type. * lists support appending with +