# \[FEATURE REQUEST\] Tuple or assignment destructuring

**URL:** <https://forums.unrealengine.com/t/feature-request-tuple-or-assignment-destructuring/1162224>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [May 11, 2023, 6:54am UTC](https://forums.unrealengine.com/t/feature-request-tuple-or-assignment-destructuring/1162224 "2023-05-11T06:54:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Knight\_Breaker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/knight_breaker/32/1194711_2.png) [@Knight\_Breaker](https://forums.unrealengine.com/u/Knight_Breaker)\
**Post date:** [May 11, 2023, 6:54am UTC](https://forums.unrealengine.com/t/feature-request-tuple-or-assignment-destructuring/1162224/1 "2023-05-11T06:54:28Z")

</div>

Occasionally I run into a situation where I want to pass a tuple around to group some data. However the language currently does not support to destructure a statically known tuple of fixed length.

It would be great if the language gained such capability.

```auto
# before
X := SomeTuple(0)
Y := SomeTuple(1)

# after
(X, Y) := SomeTuple # `tuple` is of type `tuple(T1, T2)`

```

Having it for tuples is great, but we could go even further in the future. We could permit other assignment destructuring for other structures such as arrays, structs etc.

```auto
foo := struct {
 A: int
 B: int
 C<private>: int = 42
}

# Does not extract `C` as it's not visible from this scope.
(A, B) := foo { A := 1, B := 2 }

[First, Second] := [1, 2]
[First, Second, ...Rest] := [10, 20, 30, 40, 50]

```

---

<div class="post-metadata">

**Author:** ![Conan\_Reis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/conan_reis/32/1016955_2.png) [@Conan\_Reis](https://forums.unrealengine.com/u/Conan_Reis)\
**Post date:** [May 11, 2023, 7:28am UTC](https://forums.unrealengine.com/t/feature-request-tuple-or-assignment-destructuring/1162224/2 "2023-05-11T07:28:45Z")

</div>

This is the accepted plan (with slightly different syntax) - though no ETA yet.
