Take: Difference between revisions
Jump to navigation
Jump to search
→Examples
Miraheze>Marshall |
Miraheze>Marshall |
||
Line 12: | Line 12: | ||
The left argument to length specifies a length, and not an index. It does not depend on [[index origin]]. | The left argument to length specifies a length, and not an index. It does not depend on [[index origin]]. | ||
A length which is larger than the argument length causes [[Fill element|fills]] to be inserted. The alignment remains the same: if two different positive arguments are used to take from an array, the one which is closer to zero gives a [[prefix]] of the other result. If they are both negative, it is a [[suffix]] instead. | A length which is larger than the argument length causes [[Fill element|fills]] to be inserted. The alignment remains the same: if two different positive arguments are used to take from an array, the one which is closer to zero gives a [[prefix]] of the other result. If they are both negative, it is a [[suffix]] instead. When Take makes an axis longer, it is said to "overtake" along that axis. | ||
<source lang=apl> | <source lang=apl> | ||
8 ↑ 5 4 3 2 1 | 8 ↑ 5 4 3 2 1 |