REBOL Document

Head? - Function Summary


Summary:

Returns TRUE if a series is at its head.

Usage:

head? series

Arguments:

series - The series argument. (must be: series port)

Description:


    cds: [
        "Rockin' REBOLs"
        "Carl's Addiction"
        "Jumpin' Jim"
    ]
    print head? cds
    true


    cds: tail cds
    print head? cds
    false


    until [
        cds: back cds
        print first cds
        head? cds
    ]
    Jumpin' Jim
    Carl's Addiction
    Rockin' REBOLs

Related:

head - Returns the series at its head.
tail - Returns the series at the position after the last value.
tail? - Returns TRUE if a series is at its tail.


<Back | Index | Next>

Copyright 2004 REBOL Technologies