[Top][All Lists]

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

Re: Growable arrays?

From: Hans Aberg
Subject: Re: Growable arrays?
Date: Tue, 12 Jun 2012 15:36:28 +0200

On 9 Jun 2012, at 14:32, David Kastrup wrote:

> Scheme/Guile vectors are fixed size.  Now I have a situation where I
> have a basic type lattice with records stored in vectors, and this type
> lattice may be extended dynamically (which typically happens at the
> start of a whole file, for potentially multi-file runs).  Scheme does
> not offer a suitable data structure for that.

If only grows at one end, something like C++ std::deque might be suitable. It 
has the advantage of not having to invoke copy constructors when it grows.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]