Skip to content

Conversation

GunnarFarneback
Copy link
Contributor

Cf. https://discourse.julialang.org/t/is-it-defined-behavior-to-modify-iter-while-for-looping-over-it/132477/11?u=gunnarfarneback

julia> v = collect(1:7);

julia> i = collect(1:7);

julia> w = view(v, i);

julia> i[end] = 0;

julia> w[end]
128974949945120

@nsajko nsajko added docs This change adds or pertains to documentation arrays [a, r, r, a, y, s] labels Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s] docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants