4,494
edits
(→Documentation: BQN) |
m (Text replacement - "</source>" to "</syntaxhighlight>") Tags: Mobile edit Mobile web edit |
||
Line 16: | Line 16: | ||
≡('ab' 'cde')('fg' 'hi') | ≡('ab' 'cde')('fg' 'hi') | ||
3 | 3 | ||
</ | </syntaxhighlight> | ||
The signed depth of an array is an integer with [[Magnitude|absolute value]] equal to its positive depth. It is negative if and only if the array does not have a consistent depth. | The signed depth of an array is an integer with [[Magnitude|absolute value]] equal to its positive depth. It is negative if and only if the array does not have a consistent depth. | ||
Line 26: | Line 26: | ||
In the [[flat array model]], the depth is the number of levels of [[box]]ing in an array. More precisely, the depth of a non-boxed or [[empty]] array is 0, and a non-empty boxed array has depth equal to one plus the maximum of the depths of the arrays it contains. | In the [[flat array model]], the depth is the number of levels of [[box]]ing in an array. More precisely, the depth of a non-boxed or [[empty]] array is 0, and a non-empty boxed array has depth equal to one plus the maximum of the depths of the arrays it contains. | ||
The [[J]] language uses the token <source lang=j inline>L.</ | The [[J]] language uses the token <source lang=j inline>L.</syntaxhighlight> and name "Level Of" for depth. | ||
== External links == | == External links == | ||
Line 38: | Line 38: | ||
* [https://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Depth.htm Dyalog] | * [https://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Depth.htm Dyalog] | ||
* [http://microapl.com/apl_help/ch_020_020_350.htm APLX] | * [http://microapl.com/apl_help/ch_020_020_350.htm APLX] | ||
* [https://www.jsoftware.com/help/dictionary/dlcapdot.htm J Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/lcapdot J NuVoc] (as <source lang=apl inline>L.</ | * [https://www.jsoftware.com/help/dictionary/dlcapdot.htm J Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/lcapdot J NuVoc] (as <source lang=apl inline>L.</syntaxhighlight> "Level of") | ||
* [https://mlochbaum.github.io/BQN/doc/depth.html#the-depth-function BQN] | * [https://mlochbaum.github.io/BQN/doc/depth.html#the-depth-function BQN] | ||
{{APL features}} | {{APL features}} | ||
{{APL built-ins}}[[Category:Primitive functions]] | {{APL built-ins}}[[Category:Primitive functions]] |