Depth (operator): Difference between revisions

Jump to navigation Jump to search
No change in size ,  06:23, 16 July 2023
m
fix symbol
m (fix symbol)
Line 14: Line 14:
For left argument <syntaxhighlight lang=apl inline>⍺</syntaxhighlight> and right argument <syntaxhighlight lang=apl inline>⍵</syntaxhighlight>,
For left argument <syntaxhighlight lang=apl inline>⍺</syntaxhighlight> and right argument <syntaxhighlight lang=apl inline>⍵</syntaxhighlight>,
<syntaxhighlight lang=apl>
<syntaxhighlight lang=apl>
     c  ⍝ Depth-c sub-arrays of ⍵ (monadic) or both arguments (dyadic)
     c  ⍝ Depth-c sub-arrays of ⍵ (monadic) or both arguments (dyadic)
   b c  ⍝ Depth-b sub-arrays of ⍺ and depth-c sub-arrays of ⍵ (dyadic)
   b c  ⍝ Depth-b sub-arrays of ⍺ and depth-c sub-arrays of ⍵ (dyadic)
   ⍤a b c  ⍝ Depth-a sub-arrays of ⍵ (monadic), depth-b sub-arrays of ⍺ and depth-c sub-arrays of ⍵ (dyadic)
   ⍥a b c  ⍝ Depth-a sub-arrays of ⍵ (monadic), depth-b sub-arrays of ⍺ and depth-c sub-arrays of ⍵ (dyadic)
</syntaxhighlight>
</syntaxhighlight>


Navigation menu