JuliaArrays / ReadOnlyArrays.jl

A wrapper type around AbstractArray that is read-only
Other
27 stars 5 forks source link

Support `convert(::Type{ReadOnlyArray{T}}, Array{T})`? #3

Closed wmanning-cra closed 2 years ago

wmanning-cra commented 2 years ago

I think it would be very useful to add an implicit conversion from an array to a read-only array.

bkamins commented 2 years ago

It should probably be for AbstractArray. I think it is OK to add it. If you would find it useful please go ahead and make a PR.

wmanning-cra commented 2 years ago

https://github.com/bkamins/ReadOnlyArrays.jl/pull/5