REBOL Document

Length? - Function Summary


Summary:

Returns the length of the series from the current position.

Usage:

length? series

Arguments:

series - The series argument. (must be: series port tuple bitset struct)

Description:

The length is the number of values from the current position to the tail. If the current position is the head, then the length will be that of the entire series.


    print length? "REBOL"
    5


    print length? [1 2 3 4 5]
    5


    print length? [1 2 3 [4 5]]
    4

Related:

head - Returns the series at its head.


<Back | Index | Next>

Copyright 2004 REBOL Technologies