Opposite of “nesting” a structure

Generally, if some object is nested, it is in a hierarchy level below another object. For example:

* Layer 1
  - Layer2

“Layer 2 is nested in Layer 1”. What do I call it, if I would “de-nest” Layer 2?
Like:

* Layer 1
* Layer 2

I have … Layer 2.

“De-nesting” sounds made up. “To place beside” would describe it, but I would prefer a similar short and snappy verb like “to nest”.

Answer

This is often called flattening. Below is a reference from the Jargon File. Also if you type "flatten list", for example, into Google, you will see that it’s a commonly used term.

flatten: vt.

[common] To remove structural information, esp. to filter something with an implicit tree structure into a simple sequence of leaves

[Jargon File]

Attribution
Source : Link , Question Author : Lennart , Answer Author : dangph

Leave a Comment