hd
func hd(ls : List+String) -> Entity
return ls(1)
Returns the first element or character of the given list or string.
For example: hd([1]) = 1
hd(`two') = `t'
hd([]) = Undefined
Synonymous to: first
See also: all_but_last, last, rest, tl
Herman Venter
This is Slim documentation as snarfed on 27 May 1999 by dB.