Replicate: Difference between revisions

Jump to navigation Jump to search
405 bytes added ,  12:54, 19 March 2021
→‎Extension support: Add BQN to table
(→‎Extension support: Add BQN to table)
Line 109: Line 109:
== Extension support ==
== Extension support ==


Here ">1" refers to the [[SHARP APL]] extension to non-negative integers, while "<0" refers to extension to negative integers in either NARS or APL2 style.  
Here ">1" refers to the [[SHARP APL]] extension to non-negative integers, while "<0" refers to extension to negative integers in either NARS or APL2 style. Conformability refers to extension of the right argument only, as all languages allow scalar extension of the left argument.
{| class=wikitable
{| class=wikitable
!rowspan=2| Language
!rowspan=2| Language
Line 144: Line 144:
|-
|-
| [[dzaima/APL]] (<source lang=apl inline>⌿</source>) || Function  || {{Yes}} || {{Yes}} || {{No}}  || {{No}}            || {{No}}  ||
| [[dzaima/APL]] (<source lang=apl inline>⌿</source>) || Function  || {{Yes}} || {{Yes}} || {{No}}  || {{No}}            || {{No}}  ||
|-
| [[BQN]] (<source lang=apl inline>/</source>)        || Function  || {{Yes}} ||colspan=2 {{No}}    || {{No}}            || {{No}}  || Multiple leading axes supported
|}
|}


In each language without axis specification, there is only one form of Replicate, which always applies to the first axis or [[major cell]]s—the last-axis form is discarded.
In each language without axis specification, there is only one form of Replicate, which applies to the first axis or [[major cell]]s—the last-axis form is discarded. [[BQN]] extends this form to allow any number of leading axes to be manipulated if the left argument has [[depth]] 2.


== Outside of APL ==
== Outside of APL ==

Navigation menu