# how do i put a list of items into my tarray?

**URL:** <https://forums.unrealengine.com/t/how-do-i-put-a-list-of-items-into-my-tarray/54162>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [February 1, 2016, 1:41pm UTC](https://forums.unrealengine.com/t/how-do-i-put-a-list-of-items-into-my-tarray/54162 "2016-02-01T13:41:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Jackblue](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jackblue/32/88706_2.png) [@Jackblue](https://forums.unrealengine.com/u/Jackblue)\
**Post date:** [February 2, 2016, 8:40am UTC](https://forums.unrealengine.com/t/how-do-i-put-a-list-of-items-into-my-tarray/54162/4 "2016-02-02T08:40:00Z")

</div>

You can read some useful things about TArray here:

> **[TArray: Arrays in Unreal Engine](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ProgrammingWithCPP/UnrealArchitecture/TArrays/)**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

If you want to populate an Array in one line, you can do this:

```auto

	TArray<uint8> ArrayName;
	uint8 SimpleArray] = {8, -8, 1, -1, 7, -7, 9, -9};
	ArrayName.Append(SimpleArray, ARRAY_COUNT(SimpleArray));

```

I hope this help you 🙂

---

_[View the full topic](https://forums.unrealengine.com/t/how-do-i-put-a-list-of-items-into-my-tarray/54162)._
