Jason Hemann,
Dan Friedman,
and Sam Tobin-Hochstadt <samth@ccs.neu.edu>
This library provides an implementation of semi-persistent arrays. Semi-persistent arrays present functional get and set operations that return new arrays efficiently, but existing arrays may be modified under the covers during construction of new arrays. Thus the data structure is persistent, but neither thread safe nor implemented in a purely functional manner. See A Persistent Union-Find Data Structure by Sylvain Conchon and Jean-Christophe Filliâtre for more details.
procedure
( make-p-array sizebuild-item)→p-array?
size:fixnum?
'#&#<extendable-arr>
procedure
( p-array-ref parri)→any/c
parr:p-array?i:fixnum?
2
procedure
( p-array-set parriv)→p-array?
parr:p-array?i:fixnum?v:any/c
'foo
procedure
( p-array-resize parr)→p-array?
parr:p-array?
> resized'#&#<extendable-arr>
7