# Array flatten
> Supported in: Batch, Faster, Streaming
Creates a single array from an input nested array by unioning the elements within the first level of nesting.
**Expression categories:** Array
## Declared arguments
* **Expression:** Nested array to flatten.
*Expression\>>*
**Type variable bounds:** *T accepts AnyType*
**Output type:** *Array\*
## Examples
### Example 1: Base case
**Argument values:**
* **Expression:** `array`
| array | **Output** |
| ----- | ----- |
| \[ \[ 1, 2, 3 ], \[ 4, 5, 6 ] ] | \[ 1, 2, 3, 4, 5, 6 ] |
***
### Example 2: Base case
**Argument values:**
* **Expression:** `array`
| array | **Output** |
| ----- | ----- |
| \[ \[ \[ 1 ], \[ 2 ] ], \[ \[ 3 ], \[ 4 ] ] ] | \[ \[ 1 ], \[ 2 ], \[ 3 ], \[ 4 ] ] |
***
### Example 3: Null case (ANSI mode on)
**Argument values:**
* **Expression:** `array`
| array | **Output** |
| ----- | ----- |
| \[ \[ 1, 2 ], \[ 3 ] ] | \[ 1, 2, 3 ] |
| *null* | *null* |
| \[ *null*, \[ 1, 2 ] ] | *null* |
***
### Example 4: Null case
**Argument values:**
* **Expression:** `array`
| array | **Output** |
| ----- | ----- |
| \[ \[ *null*, 1 ], \[ 2 ] ] | \[ *null*, 1, 2 ] |
***
### Example 5: Null case
**Argument values:**
* **Expression:** `array`
| array | **Output** |
| ----- | ----- |
| \[ \[ \[ 1 ], *null* ], \[ \[ 2 ] ] ] | \[ \[ 1 ], *null*, \[ 2 ] ] |
***
### Example 6: Null case (ANSI mode off)
**Argument values:**
* **Expression:** `array`
| array | **Output** |
| ----- | ----- |
| \[ \[ 1, 2 ], \[ 3 ] ] | \[ 1, 2, 3 ] |
| *null* | *null* |
| \[ *null*, \[ 1, 2 ] ] | \[ 1, 2 ] |
***