ARLEN

Since 1.1.0Arrays

Syntax

ARLEN key
  • Flags: readonly
  • ACL categories: @array, @read, @slow
  • Arity: -2

Returns the highest filled index plus one; 0 for a missing key. A lone value at index 5 gives ARLEN 6 and ARCOUNT 1.

Examples

> ARSET a 0 x y z
(integer) 3
> ARSET a 5 w
(integer) 1
> ARLEN a
(integer) 6