C++ to D

Dennis Ritchie via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 11 09:42:22 PDT 2015


On Wednesday, 11 March 2015 at 16:08:22 UTC, Kagamin wrote:
> A hash table? See http://dlang.org/hash-map.html
  	
That is, the input is a string and, depending on what word it 
contains, is called one of the three methods of the class that 
this line handles. And this happens in average constant time (for 
hash). An associative array where the key is a string and value 
is a function.


More information about the Digitalmars-d-learn mailing list