Email list hosting service & mailing list manager

Are immutable arrays truly immutable? John Cowan (03 Jan 2020 18:51 UTC)
(missing)
Re: Are immutable arrays truly immutable? John Cowan (03 Jan 2020 21:27 UTC)
Re: Are immutable arrays truly immutable? Bradley Lucier (10 Jan 2020 21:17 UTC)
Re: Are immutable arrays truly immutable? Bradley Lucier (03 Jan 2020 19:00 UTC)

Re: Are immutable arrays truly immutable? Bradley Lucier 03 Jan 2020 19:00 UTC

> On Jan 3, 2020, at 1:51 PM, John Cowan <xxxxxx@ccil.org> wrote:
>
> I'm writing a non-mathematician's guide to SRFI 122 (partly for my own benefit), and I'm not clear how immutable arrays are supposed to work.  Is it an error if the getter function is not pure and functional (i.e. depends on something other than the indices passed)?

You are correct, “immutable” arrays are ones that don’t have a mutator in the interface (i.e., it is an error to call (array-setter A)).  There is no guarantee that (array-getter A) is a “pure” function.

Brad