Simple scalar: Difference between revisions

Jump to navigation Jump to search
5 bytes removed ,  14:48, 20 November 2019
m
4 revisions imported: Migrate from miraheze
Miraheze>Adám Brudzewsky
No edit summary
m (4 revisions imported: Migrate from miraheze)
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In [[nested array theory]], a simple scalar is an array encoding data from one of the languages fundamental data types such as a [[number]] or [[character]]. A simple scalar is defined to be a [[scalar]] whose only [[element]] is itself. All nested APLs specify that simple scalars [[float]], that is, a scalar array containing only a simple scalar is identical to that simple scalar. Because of this property, all arrays which are both [[simple]] and [[scalar]] are simple scalars.
In [[nested array theory]], a '''simple scalar''' is an array encoding data from one of the language's fundamental data types such as a [[number]] or [[character]]. A simple scalar is defined to be a [[scalar]] whose only [[element]] is itself. All nested APLs specify that simple scalars [[float]], that is, a scalar array containing only a simple scalar is identical to that simple scalar. Because of this property, all arrays which are both [[simple]] and [[scalar]] are simple scalars.


Simple scalars are the only arrays with [[depth]] 0. An array consisting only of simple scalars therefore has depth 1; such arrays are called [[simple]].
Simple scalars are the only arrays with [[depth]] 0. An array consisting only of simple scalars therefore has depth 1; such arrays are called [[simple]].


{{APL programming language}}
{{APL features}}

Navigation menu