[top][index]
search for:

drop(BasicList,ZZ) -- drop some elements

Synopsis:

  • Usage: w = drop(v,n)
  • Function: drop -- drop some elements
  • Input:
  • v, an instance of class BasicList.
  • n, an instance of class ZZ.
  • Output:
  • w, an instance of class BasicList: a list obtained by omitting the first n elements of the list v if n is positive, or the last -n elements if n is negative.
  • i1 : drop({a,b,c,d,e},2)

    o1 = {c, d, e}

    o1 : List
    i2 : drop({a,b,c,d,e},-2)

    o2 = {a, b, c}

    o2 : List


    [top][index]
    search for: