MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Length and Drop

    The following sequence seems wrong to  me, in that
after dropping some elements from a list, its Length is
still the same. I copied this directly from the notebook
but removed the In[] and Out[] statements.

timexp={{0,0}} -> {{0,0}}        [this is ok]

timexp=Append[timexp,{7,8}] -> {{0,0},{7,8}}       [this is ok]

Length[timexp] -> 2             [this is ok]

Drop[timexp,1] -> {{7,8}}         [this is ok]

Length[timexp] -> 2                    [ this is what I did not expect!]

    Should not Drop reduce the Length of the list by the amount

  • Prev by Date: A question of Fit
  • Next by Date: Testing that the elements are a list are exponential
  • Previous by thread: Re: A question of Fit
  • Next by thread: Re: Length and Drop