REBOL Document

First - Function Summary


Summary:

Returns the first value of a series.

Usage:

first series

Arguments:

series - The series argument. (must be: series pair event money date object port time tuple any-function library struct event)

Description:

An error will occur if no value is found. Use the PICK function to avoid this error.


    print first "REBOL"
    R


    print first [11 22 33 44 55 66]
    11


    print first 1:30
    1


    print first 199.4.80.1
    199


    print first 12:34:56.78
    12

Related:

fifth - Returns the fifth value of a series.
fourth - Returns the fourth value of a series.
pick - Returns the value at the specified position in a series.
second - Returns the second value of a series.
third - Returns the third value of a series.


<Back | Index | Next>

Copyright 2004 REBOL Technologies