FunctionalCollections.jl actually implements an immutable array type. I
haven't looked at it recently, so I don't know it's current status.

Cheers,
   Kevin

On Monday, September 15, 2014, Steven G. Johnson <[email protected]>
wrote:

> On Sunday, September 14, 2014 6:04:20 PM UTC-4, Yakir Gagnon wrote:
>>
>> My original intention was to ask if there was any way we could declare a
>> const array who's elements are also constants.
>>
>
> Right now, the only way to do this is if you declare a new AbstractArray
> subtype, call it ReadOnlyArray, that has getindex but not setindex!
> methods.
>

Reply via email to