Length
The length operator denotes the number of elements in its slice operand.
Process
At runtime:
- the operand is evaluated; and
- the number of elements in the slice is computed, and is the length's value.
Assertions
- The operand's type is a slice type, and the length's result has type
u64.
Syntax
length_operator = number_sign ;