Talk:Array model: Difference between revisions

From APL Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
:As far as I can tell the definition of "thing inside a 0-cell" is used consistently, that is, I don't see anywhere on this page where "element" has to refer to a 0-cell. I think the idea of a 0-cell isn't needed precisely because it isn't fundamental, but there's probably some difference of interpretation here. --[[User:Marshall|Marshall]] ([[User talk:Marshall|talk]]) 01:18, 3 September 2022 (UTC)
:As far as I can tell the definition of "thing inside a 0-cell" is used consistently, that is, I don't see anywhere on this page where "element" has to refer to a 0-cell. I think the idea of a 0-cell isn't needed precisely because it isn't fundamental, but there's probably some difference of interpretation here. --[[User:Marshall|Marshall]] ([[User talk:Marshall|talk]]) 01:18, 3 September 2022 (UTC)


::The inconsistency I see is in "arrays may be considered to be homogeneous because all of their elements have the same type", here elements must refer to 0-cells, as this statement cannot apply, for example, to the array 'abc' (1 2 3) The elements ("things inside a 0-cell") are not of the same type. --[[User:Awagga|Faun]] ([[User talk:Awagga|talk]]) 01:18, 3 September 2022 (UTC)
::The inconsistency I see is in "arrays may be considered to be homogeneous because all of their elements have the same type", here elements must refer to 0-cells, as this statement cannot apply, for example, to the array 'abc' (1 2 3). The elements ("things inside a 0-cell") are not of the same type. --[[User:Awagga|Faun]] ([[User talk:Awagga|talk]]) 01:18, 3 September 2022 (UTC)

Revision as of 19:43, 3 September 2022

"elements can only be arrays, characters and numbers are held to be contained in simple scalars, arrays which by convention contain themselves as elements. In each case arrays may be considered to be homogeneous because all of their elements have the same type."

We first defined elements as the arrays within 0-cells of an array. (depth + ¯1 sub-arrays) and then continue to use elements to refer to the 0-cells. Is there not a clearer way to distinguish between them? It appears as though we need to define 0-cells as a fundamental idea.

As far as I can tell the definition of "thing inside a 0-cell" is used consistently, that is, I don't see anywhere on this page where "element" has to refer to a 0-cell. I think the idea of a 0-cell isn't needed precisely because it isn't fundamental, but there's probably some difference of interpretation here. --Marshall (talk) 01:18, 3 September 2022 (UTC)
The inconsistency I see is in "arrays may be considered to be homogeneous because all of their elements have the same type", here elements must refer to 0-cells, as this statement cannot apply, for example, to the array 'abc' (1 2 3). The elements ("things inside a 0-cell") are not of the same type. --Faun (talk) 01:18, 3 September 2022 (UTC)