int :dict-count ( array $ARR )
int :dict-count ( dict $DICT )
int :arr-count ( array $ARR )
int :arr-count ( dict $DICT )
Returns the number of values present in an array or dictionary. It is recommended the value is passed by reference, as this saves the work of copying the array/dict. Can be passed multiple arguments; value returned will then be a sum of their value counts.
# :arr-count example. :set &A :arr i0 i1 i2 :writeln :arr-count &A :set &A[i10] i10 :writeln :dict-count &A
wikipage modified on 2014/0601/2316