suve

awful: function: arr

Declaration

array :arr ( mixed $VAL , … )

Summary

Creates an array. Arguments passed will be copied and inserted into array indexes, starting from 0 and going up.

Example

# :arr example
:set &A :arr (:random | :random | :random)
:writeln s'count: ' :arr-count &A
:set &C i0
!while :lt $C :arr-count &A
    :writeln s'[' $C s'] = ' $A[$C]
    :add &C i1
    !done

wikipage modified on 2014/0601/2316