[Prev][Next][Index][Thread]
Re: remove and <array>
Bruce Hoult bruce@hoult.org on 2000-09-20 19:45 wrote:
> In article <B5EEB991.D63F%ptw@curl.com>, P T Withington <ptw@curl.com>
> wrote:
>
>> Am I misreading the reference manual, or are remove and remove-key really
>> not available on <vector>?
>
> What would they do? They're available for <stretchy-vector>.
Keith got my drift. remove could (and does) return a copy of the vector
with the argument element removed. I was thinking that remove-key would
remove the element at a particular index, but that is not consistent with
the contract of remove-key (because the key would still exist, except for
the case of the very last element).
Perhaps what I want is the ability to insert and delete at a particular
index (key) in (implicit-key-collection) sequences. I don't see such
functionality specified in the DRM, but perhaps it is in a library?
Follow-Ups:
References: