Comprehending Data Structures
SNOBOL offers two built-in compound data types: arrays and tables. It also provides you the ability to define your data structures.
Arrays
In SNOBOL, an array is a heterogeneous (“mix-and-match”), dynamically created multidimensional structure. The dimensions cannot be altered once an array is defined through an array prototype.
To instantiate an array, use the ARRAY(proto[, init]) primitive function. The first parameter is a prototype: a string containing a comma-separated list of dimensions or dimension slices, such as "2,2:8". This prototype can be a direct string literal or derived from a string expression through operations like concatenation or other function calls. An optional second parameter allows for ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access