REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 4-Aug-2010 Edit History  

REBOL 3 Functions: length?

length?  series

Returns the length of the series from the current position.

Arguments:

series [series! port! map! tuple! bitset! object! gob! struct! any-word!]

See also:

head   tail?   offset?  

Description

The length? function returns the number of values from the current position of a series to the tail of the series.

For example:

print length? "REBOL"
5

but, in the case of an offset position from skip :

print length? skip "REBOL" 2
3

or from find :

print length? find "REBOL" "L"
1

Other examples:

print length? [1 2 3 4 5]
5
print length? [1 2 3 [4 5]]
4
print length? read http://www.rebol.com
7216
obj: object [a: 10 b: 20]
print length? obj
2


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin