For those who know Python, the best way to explain what I want is by analogy:
[1, [2, 3], 4, [5, [6]], 7]
Obviously, I can implement my own class (template) to do this, but if the standard library has already invented this wheel, I want to avoid re-inventing it (or at least, avoid putting my half-baked re-invented version in my project).