At: Difference between revisions

Jump to navigation Jump to search
9 bytes added ,  09:13, 27 April 2022
correction for bools
(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 of positions which should be modified.
** '''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.
trusted
69

edits

Navigation menu