Message Boards Message Boards

1
|
1731 Views
|
3 Replies
|
5 Total Likes
View groups...
Share
Share this post:

Understanding the syntax of Flatten

Posted 1 year ago

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.

POSTED BY: John Burgers
3 Replies

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 !!

POSTED BY: John Burgers
Posted 1 year ago

POSTED BY: Eric Rimbey
Posted 1 year ago

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

POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract