Nested array: Difference between revisions

Jump to navigation Jump to search
131 bytes added ,  18:39, 5 November 2020
no edit summary
m (5 revisions imported: Migrate from miraheze)
No edit summary
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
A nested array is a kind of [[pointer array]] and is almost always stored using pointers.
A nested array is a kind of [[pointer array]] and is almost always stored using pointers.


The result of [[Enclose]] on an array other than a [[simple scalar]] is always a nested array. The [[Dyalog APL]] primitive [[Nest]] (<source lang=apl inline>⊆</source>), which encloses a non-[[simple]] argument, is named for this property: it applies the smallest transformation to turn the argument (unless it is a simple scalar) into a nested array.
The result of [[Enclose]] on an array other than a [[simple scalar]] is always a nested array. The [[Dyalog APL]] primitive [[Nest]] (<source lang=apl inline>⊆</source>), which encloses a [[simple]] argument, is named for this property: it applies the smallest transformation to turn the argument (unless it is a simple scalar) into a nested array.


{{APL features}}
== See also ==
 
* [[NARS]], the first commercial nested APL implementation.
 
{{APL features}}[[Category:Kinds of array]][[Category:Nested array model]]

Navigation menu