Skip to content

setindex! should return the array, not the value #123

@jishnub

Description

@jishnub

Eg.

julia> setindex!(ones(3),2,1)
3-element Array{Float64,1}:
 2.0
 1.0
 1.0

julia> setindex!(OffsetArray(ones(3),1:3),2,1)
2

It might be better if setindex! returned the array to be consistent with Base.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions