Skip to main content

amend_at

Function amend_at 

Source
pub fn amend_at(
    base: &Array,
    slots: &[Option<Array>],
    value: &Array,
    origin: i64,
    span: Span,
) -> Result<Array>
Expand description

APL A[i;j]←v: base with the elements the slots select replaced by value. An elided slot takes its whole axis; a scalar slot drops its axis from the shape the value has to match. The base is copied, so the array the name held before is untouched.