You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Other valid left-hand side expressions can be used as elements of the assignment list, which will call [`setindex!`](@ref) or [`setproperty!`](@ref), or recursively destructure individual elements of the iterator:
429
+
430
+
```jldoctest
431
+
julia> X = zeros(3);
432
+
433
+
julia> X[1], (a,b) = (1, (2, 3))
434
+
(1, (2, 3))
435
+
436
+
julia> X
437
+
3-element Vector{Float64}:
438
+
1.0
439
+
0.0
440
+
0.0
441
+
442
+
julia> a
443
+
2
444
+
445
+
julia> b
446
+
3
447
+
```
448
+
449
+
!!! compat "Julia 1.6"
450
+
`...` with assignment requires Julia 1.6
451
+
452
+
If the last symbol in the assignment list is suffixed by `...` (known as _slurping_), then
453
+
it will be assigned a collection or lazy iterator of the remaining elements of the
0 commit comments