4,493
edits
Line 289: | Line 289: | ||
└─────────────────────────────┴─────────────────────────────┴──────────────────────────────┘ | └─────────────────────────────┴─────────────────────────────┴──────────────────────────────┘ | ||
</source> | </source> | ||
Here we're using <source lang=apl inline>⍤</source> again, but this time only with a single argument, so we only specify one rank — the rank of the sub-arrays we want <source lang=apl inline>Circle</source> called on. Rows are vector (list), so that's rank 1. | Here we're using <source lang=apl inline>⍤</source> again, but this time only with a single argument, so we only specify one rank — the rank of the sub-arrays we want <source lang=apl inline>Circle</source> called on. Rows are vector (list), so that's rank 1. The <source lang=apl inline>⊢</source> doesn't do anything other than separate <source lang=apl inline>1</source> from <source lang=apl inline>locs</source>, so the <source lang=apl inline>⍤</source> knows what is its right operand (which specifies on what sub-arrays the function left [[operand]] is to be called) and what is its right [[argument]] (which contains the arguments for that function in its sub-arrays). | ||
[[Monad]]ic <source lang=apl inline>,</source> is called [[Ravel]] as it unravels an array into a vector, but unlike <source lang=apl inline>∊</source> it doesn't flatten enclosed elements. | [[Monad]]ic <source lang=apl inline>,</source> is called [[Ravel]] as it unravels an array into a vector, but unlike <source lang=apl inline>∊</source> it doesn't flatten enclosed elements. |