Depth (operator): Difference between revisions
Jump to navigation
Jump to search
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 | ⍤ c ⍝ Depth-c sub-arrays of ⍵ (monadic) or both arguments (dyadic) | ||
⍤ b c ⍝ Depth-b | ⍤ b c ⍝ Depth-b sub-arrays of ⍺ and depth-c sub-arrays of ⍵ (dyadic) | ||
⍤a b c ⍝ Depth-a | ⍤a b c ⍝ Depth-a sub-arrays of ⍵ (monadic), depth-b sub-arrays of ⍺ and depth-c sub-arrays of ⍵ (dyadic) | ||
</syntaxhighlight> | </syntaxhighlight> | ||