set
Input Stack:
|
⇨ | Output Stack: |
Set the value of a variable in the variable store. Variables can be retrieved later using :get and are useful for storing intermediate results, reusing complex expressions, or parameterizing queries.
Parameters¶
- key: The variable name (string identifier)
- value: The value to store (can be any type: string, number, expression, list)
Examples¶
Setting a simple variable:
k,v,:set
Pos | Input | Output |
---|---|---|
0 | v | |
1 | k |
This stores the value "v" under the key "k", removing both items from the stack.