2,962
edits
(→Documentation: BQN link) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 55: | Line 55: | ||
== Description == | == Description == | ||
With no [[function axis]], Enclose returns a [[scalar]] array whose only [[element]] is the argument. In the [[flat array model]] this means that the argument is placed in a [[box]], and the result is this box as a scalar. In the [[nested array model]] it can simply be viewed as creating a new array. However, if the argument is a [[simple scalar]], then the result will match the argument because nested array theory dicatates that simple scalars [[float]]. | |||
Enclose (without axis) is | == Properties == | ||
Enclose (without axis) is the [[inverse]] of both [[Mix]] and [[First]] in the sense that either of these undoes the additional nesting introduced by Enclose. | |||
== External links == | == External links == | ||
Line 63: | Line 65: | ||
=== Documentation === | === Documentation === | ||
* [ | * [https://help.dyalog.com/latest/#Language/Primitive%20Functions/Enclose.htm Dyalog], [https://help.dyalog.com/latest/#Language/Primitive%20Functions/Enclose%20with%20Axes.htm with axes] | ||
* [http://microapl.com/apl_help/ch_020_020_580.htm APLX] | * [http://microapl.com/apl_help/ch_020_020_580.htm APLX] | ||
* J [https://www.jsoftware.com/help/dictionary/d010.htm Vocabulary], [https://code.jsoftware.com/wiki/Vocabulary/lt NuVoc] | * J [https://www.jsoftware.com/help/dictionary/d010.htm Vocabulary], [https://code.jsoftware.com/wiki/Vocabulary/lt NuVoc] | ||
* [https://mlochbaum.github.io/BQN/doc/enclose.html BQN] | |||
{{APL built-ins}}[[Category:Primitive functions]] | {{APL built-ins}}[[Category:Primitive functions]] |