Pick: Difference between revisions

Jump to navigation Jump to search
(Created page with "{{Built-in|Pick|⊃}} is a dyadic primitive function which performs deep indexing on a possibly nested array. Pick allows to extract a value through multiple l...")
 
Line 6: Line 6:


<source lang=apl>
<source lang=apl>
       ⊢G←2 3⍴('ABC' 1)('DEF' 2)('GHI' 3)('JKL' 4)('MNO' 5)('PQR' 6)
       ⎕←G←2 3⍴('ABC' 1)('DEF' 2)('GHI' 3)('JKL' 4)('MNO' 5)('PQR' 6)
┌───────┬───────┬───────┐
┌───────┬───────┬───────┐
│┌───┬─┐│┌───┬─┐│┌───┬─┐│
│┌───┬─┐│┌───┬─┐│┌───┬─┐│
Retrieved from ‘https://aplwiki.com/wiki/Pick