[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
negative values for the :COUNT keyord argument
Date: Thu, 25 Aug 88 20:14 EDT
From: David A. Moon <Moon@stony-brook.scrc.symbolics.com>
Date: Sun, 21 Aug 88 03:45:56 EDT
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)
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?
I assume you meant :COUNT 4 (since there are 3 a's in "banana"). In any
case, it seems to do the right thing when :COUNT is positive.