Can we construct a function
f, g in mathematica such that
For any list
More explanation :
f[..] outputs the structure of a given list
L (nested structure)
g[..,..] restores original list
L, from flattened list and the structure of the list.
I bet there is a built-in function or someone else already have made it.
This question is related with generalization of