Create a List or Dictionary.

rikki cattermole rikki at cattermole.co.nz
Mon Jun 18 11:59:49 UTC 2018


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 anything, tell me please how to get out of this 
> situation?

https://dlang.org/spec/arrays.html#dynamic-arrays
https://dlang.org/spec/hash-map.html


More information about the Digitalmars-d-learn mailing list