Table¶
Name | - | Description | Default | Type |
---|---|---|---|---|
<input> |
Any input is ignored. | Any |
||
<output> |
The input to this shard is passed through as its output. | Any |
||
Name |
The name of the variable. | "" |
String &Any |
|
Key |
The key of the value to write in the table (parameter applicable only if the target variable is a table). | None |
String &String |
|
Global |
If the variable is available to all of the wires in the same mesh. | false |
Bool |
|
Type |
The table type to forward declare. | None |
Type |
Creates an empty table.
Details¶
Table
creates an empty table with or without a specified key (via the :Key
parameter). The created table name is defined in the :Name
parameter.
Whether the created table variable has a global scope (available to all wires on the mesh) or a local scope (available only to the wire its defined in) can be controlled via the :Global
parameter (true
for global scope, false
for local scope; default is false
).
In addition to the key and the scope, this shard can also define the table's inner data types via the :Types
parameter. More than one data type may be set.
Any input to this shard is ignored and instead passed through as its output.
Examples¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
[info] [shards/General/Table/Table.edn] {A: [1]}
[info] [shards/General/Table/Table.edn] {A: [1 2]}
[info] [shards/General/Table/Table.edn] {A: {}}
[info] [shards/General/Table/Table.edn] {A: 10.2}
[info] [shards/General/Table/Table.edn] {A: 20.1}
[info] [shards/General/Table/Table.edn] {A: {}}
[info] [shards/General/Table/Table.edn] {A: 10.3}
[info] [shards/General/Table/Table.edn] {A: 10.3 B: 20}
[info] [shards/General/Table/Table.edn] {A: [10]}
[info] [shards/General/Table/Table.edn] {A: [10 20]}