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

REBOL 3 Functions: head

head  series

Returns the series at its head.

Arguments:

series [series! gob! port!]

See also:

head?   tail   tail?  

Description

The insert function returns at the current string position, so head adjusts the index back to the head:

str: "all things"
print head insert str "with "
with all things

Now here is not at the head:

here: find str "all"
print here
all things

Now we print at the head:

print head here
with all things


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