Skip to content

Commit 45f75a9

Browse files
committed
chore: update stdlib documentation
1 parent 711d151 commit 45f75a9

25 files changed

Lines changed: 92 additions & 48 deletions

content/docs/std/Async.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Async"
33
slug: "async"
44
description: ""
55
summary: ""
6-
date: 2026-08-15T15:52:35+02:00
7-
lastmod: 2026-08-15T15:52:35+02:00
6+
date: 2026-09-01T02:16:32+02:00
7+
lastmod: 2026-09-01T02:16:32+02:00
88
draft: false
99
weight: 410
1010
toc: true

content/docs/std/Benchmark.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Benchmark"
33
slug: "benchmark"
44
description: ""
55
summary: ""
6-
date: 2026-08-15T15:52:35+02:00
7-
lastmod: 2026-08-15T15:52:35+02:00
6+
date: 2026-09-01T02:16:32+02:00
7+
lastmod: 2026-09-01T02:16:32+02:00
88
draft: false
99
weight: 410
1010
toc: true

content/docs/std/Builtins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Builtins"
33
slug: "builtins"
44
description: ""
55
summary: ""
6-
date: 2026-08-15T15:52:35+02:00
7-
lastmod: 2026-08-15T15:52:35+02:00
6+
date: 2026-09-01T02:16:32+02:00
7+
lastmod: 2026-09-01T02:16:32+02:00
88
draft: false
99
weight: 410
1010
toc: true

content/docs/std/Bytecode.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Bytecode"
33
slug: "bytecode"
44
description: ""
55
summary: ""
6-
date: 2026-08-15T15:52:35+02:00
7-
lastmod: 2026-08-15T15:52:35+02:00
6+
date: 2026-09-01T02:16:32+02:00
7+
lastmod: 2026-09-01T02:16:32+02:00
88
draft: false
99
weight: 410
1010
toc: true

content/docs/std/Cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Cli"
33
slug: "cli"
44
description: ""
55
summary: ""
6-
date: 2026-08-15T15:52:35+02:00
7-
lastmod: 2026-08-15T15:52:35+02:00
6+
date: 2026-09-01T02:16:32+02:00
7+
lastmod: 2026-09-01T02:16:32+02:00
88
draft: false
99
weight: 410
1010
toc: true

content/docs/std/Colours.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Colours"
33
slug: "colours"
44
description: ""
55
summary: ""
6-
date: 2026-08-15T15:52:35+02:00
7-
lastmod: 2026-08-15T15:52:35+02:00
6+
date: 2026-09-01T02:16:32+02:00
7+
lastmod: 2026-09-01T02:16:32+02:00
88
draft: false
99
weight: 410
1010
toc: true

content/docs/std/Datetime.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Datetime"
33
slug: "datetime"
44
description: ""
55
summary: ""
6-
date: 2026-08-15T15:52:35+02:00
7-
lastmod: 2026-08-15T15:52:35+02:00
6+
date: 2026-09-01T02:16:32+02:00
7+
lastmod: 2026-09-01T02:16:32+02:00
88
draft: false
99
weight: 410
1010
toc: true

content/docs/std/Dict.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Dict"
33
slug: "dict"
44
description: ""
55
summary: ""
6-
date: 2026-08-15T15:52:35+02:00
7-
lastmod: 2026-08-15T15:52:35+02:00
6+
date: 2026-09-01T02:16:32+02:00
7+
lastmod: 2026-09-01T02:16:32+02:00
88
draft: false
99
weight: 410
1010
toc: true
@@ -51,6 +51,48 @@ Return the length of a dictionary
5151
(print (len (dict "a" 1 "b" 2 "c" 3))) # 3
5252
{{< /highlight_arkscript >}}
5353

54+
## @
55+
56+
---
57+
`(@ _D _key)`
58+
Get a value from a given dictionary using a key, or nil if it doesn't exist
59+
60+
61+
62+
#### Parameters
63+
- `_D`: dictionary
64+
- `_key`: key to get
65+
66+
67+
#### Example
68+
{{< highlight_arkscript >}}
69+
(let data (dict "key" "value"))
70+
(print (@ data "key")) # value
71+
{{< /highlight_arkscript >}}
72+
73+
## @=
74+
75+
---
76+
`(@= _D _key _value)`
77+
78+
79+
**Note**: The dictionary is modified in place
80+
81+
82+
#### Parameters
83+
- `_D`: dictionary
84+
- `_key`: key to add (or replace)
85+
- `_value`: value for the given key
86+
87+
88+
#### Example
89+
{{< highlight_arkscript >}}
90+
(let data (dict "key" "value"))
91+
(@= data "hello" "world")
92+
(@= data "key" "hole") # key:value will be replaced by key:hole
93+
(print data) # {key: hole, hello: world}
94+
{{< /highlight_arkscript >}}
95+
5496
## dict
5597

5698
---

content/docs/std/Events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Events"
33
slug: "events"
44
description: ""
55
summary: ""
6-
date: 2026-08-15T15:52:35+02:00
7-
lastmod: 2026-08-15T15:52:35+02:00
6+
date: 2026-09-01T02:16:32+02:00
7+
lastmod: 2026-09-01T02:16:32+02:00
88
draft: false
99
weight: 410
1010
toc: true

content/docs/std/Exceptions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: "Exceptions"
33
slug: "exceptions"
44
description: ""
55
summary: ""
6-
date: 2026-08-15T15:52:35+02:00
7-
lastmod: 2026-08-15T15:52:35+02:00
6+
date: 2026-09-01T02:16:32+02:00
7+
lastmod: 2026-09-01T02:16:32+02:00
88
draft: false
99
weight: 410
1010
toc: true

0 commit comments

Comments
 (0)