2,954
edits
(→Documentation: BQN link) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{ | {| class=vertical-navbox style="float:right; font-size:500%; margin:0 1ex;" | ||
|<code>⊇</code> <code>@</code> | |||
|} | |||
'''From''' (<code>⊇</code> or <code>@</code> and also called '''Select''', or, [[humour]]ously, ''Sane Indexing'') is a [[primitive function]] that selects multiple [[major cell]]s of its right argument using an array of [[index|indices]] given by its left. The primitive often offers additional functionality for a [[nested]] left argument, which varies from one language to another. It appears in [[J]] (as <source lang=j inline>{</source>), [[Extended Dyalog APL]], [[dzaima/APL]], [[KAP]], and [[BQN]] (as <code>⊏</code>). | |||
== Common usage == | == Common usage == | ||
Line 55: | Line 58: | ||
* J: [https://www.jsoftware.com/help/dictionary/d520.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/curlylf#dyadic Nuvoc] | * J: [https://www.jsoftware.com/help/dictionary/d520.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/curlylf#dyadic Nuvoc] | ||
* [https://abrudz.github.io/SAX2/SAX61.pdf#M44.9.from SAX] | * [https://abrudz.github.io/SAX2/SAX61.pdf#M44.9.from SAX] | ||
* [https://mlochbaum.github.io/BQN/doc/select.html BQN] | |||
== References == | == References == | ||
<references/> | <references/> | ||
{{APL built-ins}}[[Category:Primitive functions]] | {{APL built-ins}}[[Category:Primitive functions]] |