Depth (operator): Difference between revisions

Jump to navigation Jump to search
Line 56: Line 56:
Pair up the elements on the left with each element of each element on the right.
Pair up the elements on the left with each element of each element on the right.
<syntaxhighlight lang=apl>
<syntaxhighlight lang=apl>
       'xy',⍥0 1⊢('ab' 'cd')('AB' 'CD')  ⍝ equivalent to (⊂'xy'),¨¨('ab' 'cd')('AB' 'CD')
       'xy',⍥¯1⍥¯1⊢('ab' 'cd')('AB' 'CD')  ⍝ equivalent to (⊂'xy'),¨¨('ab' 'cd')('AB' 'CD')
┌─────────┬─────────┐
┌─────────┬─────────┐
│┌───┬───┐│┌───┬───┐│
│┌───┬───┐│┌───┬───┐│