head


head(p)
      

Return the first element of the pair p. If p is not a valid pair, return false.

Examples:


head(10:20)
// 10

head([])
// false

head("ok")
// false
      

Also see:

pair
tail
car
cdr
first
rest
set_head
set_tail


Core Module Index | Contents