fieldCount (Array)

fieldCount ( array -- count )

Returns the number of entries in an array.

fieldCount ( range -- count )

Returns the number of entries in a range.

Arguments

fieldCount ( array -- count )

The

array
to count entries in.

fieldCount ( range -- count )

range
is an ArrayRange to count entries in.

Return values

size
is the number of entries, integer.

Complexity

Constant

Example

"sl/array" useFile a: (1 2 0 5 "Hello" 0.3) makeArray; a fieldCount print LF print a.makeRange fieldCount print
Output:
6 6