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

REBOL 3 Functions: head?

head?  series

Returns TRUE if a series is at its head.

Arguments:

series [series! gob! port!]

See also:

head   tail   tail?  

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
]
Rockin' REBOLs


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