mir.ndslice : multi dimensional associative array - Example/Docs

Vino akashvino79 at gmail.com
Mon Oct 26 14:31:00 UTC 2020


Hi All,

   Is it possible to create a multi dimensional associative array 
using mir.ndslice,
   if yes,
    (1): request you to point me to some example / docs
    (2): below is an example multi dimensional associative array 
using the core d module, and
         how can we to implement the same using mir.ndslice.
    (3): What are the pros and cons of using mir.ndslice over the 
core d module.

import std.stdio;
void main () {
    string[int][string] aa;
    aa["Name"] = [1: "test01", 2:"test02"];
    aa["Pool"] = [1: "Development", 2:"Quality"];
    foreach(i; aa["Pool"].byValue) { writeln(i); }	
}

From,
Vino.B


More information about the Digitalmars-d-learn mailing list