0

I'm developing a recursive method for a class which will return a complicated data structure (a list of dictionaries which will contain lists of dictionaries as values).

The data structure could be something like that:

list<map <string,list<map <string,list< map<string,list<...> > > >

How can I refer to this structure while defining returning types or parameters in the method? The problem I don't know how deep the structure is going to be.

Could something like list<map<string,T> > work??

BTW, maybe the data structure is no-sense, but I'm translating some code from Python and I have to do it like that.

Thanks in advance!

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by jencas
0

@adatapost

I think you haven't read metzenes's post thoroughly. Your recommendation will not work for him.

0

Thank you jencas,

I regret.

I read those lines:

How can I refer to this structure while defining returning types or parameters in the method?

and bypassed,

The problem I don't know how deep the structure is going to be.
Could something like list<map<string,T> > work??

Sorry for inconvenience.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.