[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

negative values for the :COUNT keyord argument



    Date: Sun, 21 Aug 88 03:45:56 EDT
    From: Dave.Touretzky@B.GP.CS.CMU.EDU

    The June 3, 1987 version of KCL treats a negative value as how many spaces
    to tack on to the end of the string.  It appears to handle lists correctly,
    but not vectors:

      > (remove #\a "Banana: :count -10)
      "Banana          "

Does this mean that in KCL (remove #\n "Banana: :count 3) returns a
string that is one character too short?  I.e. is it dead-reckoning
the length of the returned string, instead of counting the number of
items that actually will be removed?