# Understanding the syntax of Flatten

**URL:** <https://community.wolfram.com/t/understanding-the-syntax-of-flatten/20731>\
**Category:** Questions\
**Created:** [September 18, 2022, 8:19pm UTC](https://community.wolfram.com/t/understanding-the-syntax-of-flatten/20731 "2022-09-18T20:19:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![burgersjk](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@burgersjk](https://community.wolfram.com/u/burgersjk)\
**Post date:** [September 18, 2022, 8:19pm UTC](https://community.wolfram.com/t/understanding-the-syntax-of-flatten/20731/1 "2022-09-18T20:19:33Z")

</div>

I humbly ask …

Is there a post somewhere that describes how the following syntax of Flatten works? I’m having trouble understanding this from what is described on the Flatten documentation page.

```
Flatten[list, { {s11,s12,...},{s21,s22, ...}, ...}]

```

flattens list by combining all levels sij to make each level i in the result

The related examples didn’t help my understanding.

Perhaps I’m also not understanding the meaning of Level 1, level 2, … and the concept of outermost, innermost.

---

<div class="post-metadata">

**Author:** ![eric3](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/eric3/32/12760_2.png) [@eric3](https://community.wolfram.com/u/eric3)\
**Post date:** [September 19, 2022, 6:03pm UTC](https://community.wolfram.com/t/understanding-the-syntax-of-flatten/20731/2 "2022-09-19T18:03:01Z")

</div>

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/d9636277-8d5a-4391-9de8-e3b6cfd6b02f)

---

<div class="post-metadata">

**Author:** ![eric3](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/eric3/32/12760_2.png) [@eric3](https://community.wolfram.com/u/eric3)\
**Post date:** [September 19, 2022, 6:04pm UTC](https://community.wolfram.com/t/understanding-the-syntax-of-flatten/20731/3 "2022-09-19T18:04:31Z")

</div>

Ugh, the formatting didn’t turn out nice for browser viewing.

---

<div class="post-metadata">

**Author:** ![burgersjk](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@burgersjk](https://community.wolfram.com/u/burgersjk)\
**Post date:** [September 19, 2022, 7:03pm UTC](https://community.wolfram.com/t/understanding-the-syntax-of-flatten/20731/4 "2022-09-19T19:03:20Z")

</div>

Thank you Eric.

Your description made sense, now I understand how the syntax of Flatten relates to where element wind up in the newly created list structure.

Helpful indeed !!
