Re: Create a List or Dictionary.

2018-06-19 Thread ag0aep6g via Digitalmars-d-learn
On 06/19/2018 11:50 AM, Sunny wrote: I read about D here - https://www.tutorialspoint.com/d_programming/index.htm I'd advise against using that tutorial. Last time I looked at it, it seemed to be of low quality [1]. And the better parts seemed to be stolen from Ali Çehreli's "Programming in

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

Re: Create a List or Dictionary.

2018-06-19 Thread Cym13 via Digitalmars-d-learn
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 explains all those fundamental features quite well I think.

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;

Re: Create a List or Dictionary.

2018-06-18 Thread Cym13 via Digitalmars-d-learn
On Monday, 18 June 2018 at 11:44:43 UTC, Sunny wrote: 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 Goog

Re: Create a List or Dictionary.

2018-06-18 Thread rikki cattermole via Digitalmars-d-learn
On 18/06/2018 11:44 PM, Sunny wrote: 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 an

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 g