You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: pages/cookbook/data-structures.mdx
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ All of the data structures listed here are made using the built-in [`map<K, V>{:
12
12
13
13
An [array](https://en.wikipedia.org/wiki/Array_(data_structure)) is a data structure consisting of a continuous block of memory, which represents a collection of elements of same memory size, each identified by at least one array key or _index_.
14
14
15
-
Following example emulates an array using a [`map<Int, v>{:tact}`][map] wrapped in a [Struct](/book/structs-and-messages#structs), where `v` can be any of the [allowed value types](/book/maps#allowed-types) of the map:
15
+
Following example emulates an array using a [`map<Int, V>{:tact}`][map] wrapped in a [Struct](/book/structs-and-messages#structs), where `V{:tact}` can be any of the [allowed value types](/book/maps#allowed-types) of the map:
16
16
17
17
```tact
18
18
import "@stdlib/deploy"; // for Deployable trait
@@ -165,7 +165,7 @@ A [stack](https://en.wikipedia.org/wiki/Stack_(abstract_data_type)) is a data st
165
165
* push, which adds an element to the end of the collection
166
166
* pop, which removes the most recently added element
167
167
168
-
Following example emulates a stack using a [`map<Int, v>{:tact}`][map] wrapped in a [Struct](/book/structs-and-messages#structs), where `v` can be any of the [allowed value types](/book/maps#allowed-types) of the map:
168
+
Following example emulates a stack using a [`map<Int, V>{:tact}`][map] wrapped in a [Struct](/book/structs-and-messages#structs), where `V{:tact}` can be any of the [allowed value types](/book/maps#allowed-types) of the map:
169
169
170
170
```tact
171
171
import "@stdlib/deploy"; // for Deployable trait
@@ -266,7 +266,7 @@ contract MapAsStack with Deployable {
266
266
267
267
A [circular buffer](https://en.wikipedia.org/wiki/Circular_buffer) (circular queue, cyclic buffer or ring buffer) is a data structure, which uses a single, fixed-size [buffer](https://en.wikipedia.org/wiki/Data_buffer) as it were connected end-to-end.
268
268
269
-
Following example emulates a circular buffer using a [`map<Int, v>{:tact}`][map] wrapped in a [Struct](/book/structs-and-messages#structs), where `v` can be any of the [allowed value types](/book/maps#allowed-types) of the map:
269
+
Following example emulates a circular buffer using a [`map<Int, V>{:tact}`][map] wrapped in a [Struct](/book/structs-and-messages#structs), where `V{:tact}` can be any of the [allowed value types](/book/maps#allowed-types) of the map:
0 commit comments