FIRST

Synopsis
FIRST thing
Description

If thing is a word, outputs the first character of the word. If thing is a list, outputs the first member of the list. If thing is an array, outputs the origin of the array (that is, the index of the first element of the array).

FIRST throws a bad input error if given the empty list, the empty string, or the empty array.

Example
SHOW FIRST [1 2 3]
1
SHOW FIRST "Hello
H
SHOW FIRST {a b c}
1

SourceForge.net Logo