first

func first(ls : List+String) -> Entity
  return ls(1)

Returns the first element or character of the given list or string. For example:
  first([1]) = 1
  first(`two') = `t'
  first([]) = Undefined
Synonymous to: hd
See also: all_but_last, last, rest, tl

Herman Venter

This is Slim documentation as snarfed on 27 May 1999 by dB.