You can write your own immutable arrays in Ocaml.
See for instance util/arrayf.{ml,mli} in Ensemble,
which is an implementation of functional arrays.
http://www.cs.cornell.edu/Info/Projects/Ensemble/
Of course, there is no syntactic sugar for the
constructors and Array.get operation.
--Mark
Date: Thu, 13 Jan 2000 20:45:01 +0100
To: caml-list@inria.fr
From: Juergen Pfitzenmaier <pfitzen@informatik.uni-tuebingen.de>
Subject: Re: Immutable arrays (modest Feature request)
Delivery-Date: Fri Jan 14 00:00:39 2000
>
>I too would like to see immutable strings/arrays if they are faster than
>their mutable siblings.
>
>pfitzen
>
This archive was generated by hypermail 2b29 : Fri Jan 14 2000 - 20:22:03 MET