Indexing into lists/maps.

First test with literal list completed. When it's assigned to a var if fails
This commit is contained in:
Shautvast 2025-11-09 22:00:05 +01:00
parent 61b9d86aa2
commit ec8fe5a795

View file

@ -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 +