Puts the elements of other collection col2
after the elements of input
collection
(concatenation of two collections).
Transforms a collection of values to a boolean (see Exists, ForAll).
The element of the collection or default value.
Extracts context variable as Coll[Byte], deserializes it to script and then executes this script in the current context.
Extracts context variable as Coll[Byte], deserializes it to script and then executes this script in the current context.
The original Coll[Byte]
of the script is available as getVar[Coll[Byte]](id)
result type of the deserialized script.
identifier of the context variable
result of the script execution in the current context
2.0
InterpreterException
if the actual script type doesn't conform to T
Extract register of SELF box as Coll[Byte], deserialize it into Value and inline into executing script.
Extract register of SELF box as Coll[Byte], deserialize it into Value and inline into executing script. NOTE: it only applicable to SELF box
Tests whether a predicate holds for at least one element of this collection.
Tests whether a predicate holds for at least one element of this collection.
the collection to be tested
the predicate used to test elements.
true
if the given condition
is satisfied by at least one element of this
collection, otherwise false
Extracts the monetary value, in Ergo tokens (NanoErg unit of measure) from input Box.
Extracts serialized bytes of this box's content, including proposition bytes.
Extracts serialized bytes of this box's content, excluding transactionId and index of output.
Tuple of height when block got included into the blockchain and transaction identifier with box index in the transaction outputs serialized to the byte array.
Tuple of height when block got included into the blockchain and transaction identifier with box index in the transaction outputs serialized to the byte array.
box
Extracts Blake2b256 hash of this box's content, basically equals to blake2b256(bytes)
See Box.getReg()
Extract serialized bytes of guarding script.
Extract serialized bytes of guarding script. As a reminder, the script should be evaluated to true in order to open this box. (aka spend it in a transaction).
Selects all elements of input
collection which satisfy the condition.
Selects all elements of input
collection which satisfy the condition.
the collection to be filtered
the predicate used to test elements.
a new collection consisting of all elements of this collection that satisfy
the given condition
. The order of the elements is preserved.
Applies a binary function to a start value and all elements of this collection, going left to right.
Applies a binary function to a start value and all elements of this collection, going left to right.
the result type of the binary operator.
the collection to iterate
the start value.
the binary function.
the result of inserting foldOp
between consecutive elements of this collection,
going left to right with the start value zero
on the left:
foldOp(...foldOp(zero, x_1), x_2, ..., x_n)
where x_1, ..., x_n
are the elements of this collection.
Returns zero
if this collection is empty.
Tests whether a predicate holds for all elements of this collection.
Tests whether a predicate holds for all elements of this collection.
the collection to be tested
the predicate used to test elements.
true
if this collection is empty or the given condition
holds for all elements of this collection, otherwise false
.
See special.sigma.Context.getVar() for detailed description.
Builds a new collection by applying a function to all elements of this collection.
Builds a new collection by applying a function to all elements of this collection.
the element type of the input collection.
the element type of the returned collection.
the collection to be mapped
the function to apply to each element.
a new collection of type Coll[OV]
resulting from applying the given function
mapper
to each element of this collection and collecting the results.
Returns the option's value.
Returns the option's value.
java.util.NoSuchElementException
if the option is empty.
The option must be nonempty.
Returns the option's value if the option is nonempty, otherwise
return the result of evaluating default
.
Returns the option's value if the option is nonempty, otherwise
return the result of evaluating default
.
NOTE: the default
is evaluated even if the option contains the value
i.e. not lazily.
the default expression.
Returns false if the option is None, true otherwise.
Select tuple field by its 1-based index.
Select tuple field by its 1-based index. E.g. input._1 is transformed to SelectField(input, 1)
Extract serialized bytes of a SigmaProp value
Represents execution of Sigma protocol that validates the given input SigmaProp.
The length of the collection (aka size).
Selects an interval of elements.
Selects an interval of elements. The returned collection is made up
of all elements x
which satisfy the invariant:
from <= indexOf(x) < until
the lowest index to include from this collection.
the lowest index to EXCLUDE from this collection.
Every operation is a transformer of some kind.
Every operation is a transformer of some kind. This trait is used merely to simplify implementation and avoid copy-paste.
The element of the collection or default value. If an index is out of bounds (
i < 0 || i >= length
) thendefault
value is returned.the type of elements
the zero-based indexed collection
the index of the requested element (zero-based)
the element at the given index or
default
value if index is out or boundsArrayIndexOutOfBoundsException
ifindex < 0
orlength <= index