Re: Create a List or Dictionary.

2018-06-19 Thread Sunny via Digitalmars-d-learn
On Tuesday, 19 June 2018 at 09:07:46 UTC, Cym13 wrote: On Tuesday, 19 June 2018 at 05:52:00 UTC, Sunny wrote: On Monday, 18 June 2018 at 13:23:37 UTC, Cym13 wrote: Yes, this is what need, thank you very much for your help. :-) [...] I recommend that you take the D tour if you can, it explai

Re: Create a List or Dictionary.

2018-06-18 Thread Sunny via Digitalmars-d-learn
On Monday, 18 June 2018 at 13:23:37 UTC, Cym13 wrote: Yes, this is what need, thank you very much for your help. :-) On Monday, 18 June 2018 at 11:44:43 UTC, Sunny wrote: [...] If I read you well it seems the simplest equivalent code would be: struct MusicItem { string URL;

Create a List or Dictionary.

2018-06-18 Thread Sunny via Digitalmars-d-learn
Hello, I'm having a problem, how can I create a List or Dictionary in D? In C #, I can create a tuple list, example: var musicList = new List <(string URL, string Artist, string Title, string Cover, string Duration)> (); In Google did not find anything, tell me please how to get out of this