The Readonly Indexing Function
Calling Sequence
Description
Examples
table(readonly, ...)
The readonly indexing function is used to create a table for which assigning new entries is illegal. Any object can be initially stored in a table that uses the readonly indexing function, but trying to into the table will raise an exception.
only empty readonly tables can be created directly
table⁡readonly,
table⁡readonly,a=1,b=2
Error, (in `index/readonly`) cannot assign to a readonly table
non-empty read only tables can created by replacing a indexing function in an existing table, with readonly
T≔subsop⁡1=readonly,table⁡a=1,b=2
T≔table⁡readonly,a=1,b=2
Ta
1
Tc≔1
Ta≔1
See Also
indexfcn
rtable_indexfcn
Download Help Document