Mixed array: Difference between revisions

Jump to navigation Jump to search
4 bytes removed ,  11:35, 15 November 2019
m
no edit summary
Miraheze>Marshall
(Created page with "In nested array theory, a mixed array is one that mixes simple scalar characters and numbers, or simple scalars with arrays which are not simple scalars. Such...")
 
Miraheze>Marshall
mNo edit summary
Line 1: Line 1:
In [[nested array theory]], a mixed array is one that mixes [[simple scalar]] [[characters]] and [[numbers]], or simple scalars with arrays which are not simple scalars. Such an array cannot be formed in [[flat array theory]], which does not allow mixing of the character, number, and [[Box|boxed]] types.
In [[nested array theory]], a mixed array is one that mixes [[simple scalar]] [[character]]s and [[number]]s, or simple scalars with arrays which are not simple scalars. Such an array cannot be formed in [[flat array theory]], which does not allow mixing of the character, number, and [[box]]ed types.


Because it must have more than one [[element]], a mixed array must have [[bound]] greater than one, and [[depth]] at least one (in particular, it cannot be a simple scalar). However, mixed arrays with depth one can be formed by mixing numbers and characters. While such an array is [[Simple array|simple]], it is neither a simple numeric nor a simple character array. In some cases it may be referred to as a [[pointer array]], because it is stored using pointers like a [[nested array]].
Because it must have more than one [[element]], a mixed array must have [[bound]] greater than one, and [[depth]] at least one (in particular, it cannot be a simple scalar). However, mixed arrays with depth one can be formed by mixing numbers and characters. While such an array is [[Simple array|simple]], it is neither a simple numeric nor a simple character array. In some cases it may be referred to as a [[pointer array]], because it is stored using pointers like a [[nested array]].


A non-simple mixed array must contain some simple scalars and some other arrays. As a consequence, it has depth greater than one, but some of its elements have depth zero. Therefore its [[signed depth]] is negative.
A non-simple mixed array must contain some simple scalars and some other arrays. As a consequence, it has depth greater than one, but some of its elements have depth zero. Therefore its [[signed depth]] is negative.
Anonymous user

Navigation menu