Array model: Difference between revisions
Jump to navigation
Jump to search
→Depth
Miraheze>Adám Brudzewsky |
Miraheze>Adám Brudzewsky (→Depth) |
||
Line 52: | Line 52: | ||
=== Depth === | === Depth === | ||
{{Main|Depth}} | |||
The depth is the level of nesting. For example an array of simple (i.e. non-nested) scalars has depth 1, an array containing only depth 1 arrays has depth 2 and a simple scalar (e.g a number or character) has depth 0. However, for some arrays it's not so easy. An array may contain both vectors and scalars. In cases like this, some APLs report the depth is as negative. | The depth is the level of nesting. For example an array of simple (i.e. non-nested) scalars has depth 1, an array containing only depth 1 arrays has depth 2 and a simple scalar (e.g a number or character) has depth 0. However, for some arrays it's not so easy. An array may contain both vectors and scalars. In cases like this, some APLs report the depth is as negative. |