Map
scalus.uplc.builtin.Data.Map
Key-value mapping - represents associative data structures.
Used to encode Map[K, V] types where both keys and values are Data. Note that duplicate keys are allowed (this is a list of pairs, not a true map). Equality compares the pairs in order, as Plutus does: maps with the same entries in a different order are not equal.
Corresponds to UPLC builtins mapData and unMapData.
Value parameters
- values
-
list of key-value pairs
Attributes
- Example
-
// A map from integers to strings Map(List((I(1), B(hex"aa")), (I(2), B(hex"bb")))) - Graph
-
- Supertypes
Members list
In this article