trim_left

func trim_left(ls : List+String, n : Integer) -> List+String
  n := 1 when n = Undefined
  return slice(ls, [n+1..#ls])

Trims away the front of a string or list. For example:
  trim_left(`"abc"') = `abc"'
  trim_left(`"abc"', 2) = `bc"'
See also: trim, trim_right.
Herman Venter


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