last

func last(ls : List+String)-> Entity
  return ls(#ls)

Returns the last element or character of the given list or string. For example:
  last([1]) = 1
  last(`two') = `o'
  last([]) = Undefined
See also: all_but_last, first, rest, tl take_left, take_right, trim_left, trim_right

Herman Venter

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