@@ -3,8 +3,8 @@ title: "Dict"
33slug : " dict"
44description : " "
55summary : " "
6- date : 2026-03-17T21:16:22 +02:00
7- lastmod : 2026-03-17T21:16:22 +02:00
6+ date : 2026-03-19T05:59:58 +02:00
7+ lastmod : 2026-03-19T05:59:58 +02:00
88draft : false
99weight : 410
1010toc : true
@@ -135,28 +135,6 @@ Checks if the dictionary has a given key
135135(print (dict: contains ? data "test")) # false
136136{{< /highlight_arkscript >}}
137137
138- ## contains
139-
140- ---
141- ` (let contains <value>) `
142- Checks if the dictionary has a given key
143-
144- ** Deprecated** : Use ` dict:contains? `
145-
146-
147- ** Author** : [ @SuperFola ] ( https://github.com/SuperFola )
148-
149- #### Parameter
150- - ` _D ` : dictionary
151-
152-
153- #### Example
154- {{< highlight_arkscript >}}
155- (let data (dict "key" "value"))
156- (print (dict: contains data "key")) # true
157- (print (dict: contains data "test")) # false
158- {{< /highlight_arkscript >}}
159-
160138## getOrElse
161139
162140---
@@ -244,27 +222,6 @@ Returns a list of the keys of a dictionary
244222(print (dict: keys data)) # [ key, 5]
245223{{< /highlight_arkscript >}}
246224
247- ## size
248-
249- ---
250- ` (let size (fun (_D) (...))) `
251- Computes the number of (key, value) pairs in a given dictionary
252-
253- ** Deprecated** : Use the builtin ` len ` instead
254-
255-
256- ** Author** : [ @SuperFola ] ( https://github.com/SuperFola )
257-
258- #### Parameter
259- - ` _D ` : dictionary
260-
261-
262- #### Example
263- {{< highlight_arkscript >}}
264- (let data (dict "key" "value"))
265- (print (dict: size data)) # 1
266- {{< /highlight_arkscript >}}
267-
268225## values
269226
270227---
0 commit comments