Subarray: Difference between revisions

Jump to navigation Jump to search
3 bytes added ,  05:52, 9 June 2020
m
Text replacement - " ⊢( *[^∘])" to " ⎕←$1"
No edit summary
m (Text replacement - " ⊢( *[^∘])" to " ⎕←$1")
Line 7: Line 7:
The [[Find]] (<source lang=apl inline>⍷</source>) function searches for occurrences of the left argument as a subarray of the right argument. For Find, a subarray may have leading axes dropped but not others. We might also say that Find searches for the left argument after extending its [[shape]] with leading 1s, or that it searches for the left argument as a subarray of any equal-[[rank]] [[cell]] of the right argument.
The [[Find]] (<source lang=apl inline>⍷</source>) function searches for occurrences of the left argument as a subarray of the right argument. For Find, a subarray may have leading axes dropped but not others. We might also say that Find searches for the left argument after extending its [[shape]] with leading 1s, or that it searches for the left argument as a subarray of any equal-[[rank]] [[cell]] of the right argument.
<source lang=apl>
<source lang=apl>
       ⊢A ← 5 4⍴⎕A
       ⎕←A ← 5 4⍴⎕A
ABCD
ABCD
EFGH
EFGH

Navigation menu