trusted
69
edits
(Add At operator page) |
(correction for bools) |
||
Line 5: | Line 5: | ||
A call to At is of the form <source lang=apl inline>X(f@g)Y</source> where <source lang=apl inline>X</source> is optional. | A call to At is of the form <source lang=apl inline>X(f@g)Y</source> where <source lang=apl inline>X</source> is optional. | ||
* <source lang=apl inline>g</source> specifies the indices of the right argument that should be modified. | * <source lang=apl inline>g</source> specifies the indices of the right argument that should be modified. | ||
** '''Function''': Must apply to <source lang=apl inline>Y</source> , and return a boolean array | ** '''Function''': Must apply to <source lang=apl inline>Y</source> , and return a boolean array with ones at positions that should be modified. | ||
** '''Array''': Specifies the indices directly. If this is a scalar, it is repeated as necessary. | ** '''Array''': Specifies the indices directly. If this is a scalar, it is repeated as necessary. | ||
* <source lang=apl inline>f</source> specifies what happens to the elements at those positions. | * <source lang=apl inline>f</source> specifies what happens to the elements at those positions. |