scalus.uplc.builtin.BuiltinArray
See theBuiltinArray companion object
A builtin array type corresponding to the Plutus Core builtin array (CIP-0156).
Arrays provide O(1) indexed access to elements, complementing linked lists which have O(n) access time. This makes arrays ideal for random access patterns.
Arrays are created from lists using listToArray and provide efficient indexed access via indexArray and multiIndexArray.
==UPLC Builtin Operations==
The following UPLC builtins operate on arrays (available in Plutus V4+):
listToArray- Convert a list to an arraylengthOfArray- Get the number of elementsindexArray- Access element at index (O(1))multiIndexArray- Access multiple elements by indices
Type parameters
- A
-
the element type
Attributes
- See also
- Since
-
Plutus V4
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article