fill
@opcat-labs/scrypt-ts-opcat v1.0.4
@opcat-labs/scrypt-ts-opcat / fill
Function: fill()
fill\<
E,N>(value,length):FixedArray\<E,N>
Defined in: packages/scrypt-ts-opcat/src/smart-contract/fns/fill.ts:12
Returns an FixedArray with all size elements set to value, where value can be any type.
Note that length must be a numeric literal or a compiled-time constant
Type Parameters
• E
• N extends number
Parameters
value
E
the value of each element to set
length
N
the length of FixedArray
Returns
FixedArray\<E, N>