Associative array printing problems
KennyTM~
kennytm at gmail.com
Wed Jun 22 11:50:26 PDT 2011
On Jun 23, 11 02:45, bearophile wrote:
> Printing associative arrays in a decent way is not a luxury, it's a basic skill I expect D writeln to have.
>
> This is reduced from a program related to the coding Kata Nineteen, Word Chains. The problem asks to create the longest chain of words. This function creates an associative array where the keys are the start chars of words, and the values are sets of words. For simplicity in D2 I have implemented the string sets as bool[string].
>
[snip]
>
> Bye,
> bearophile
Basically this is a reiteration of
http://d.puremagic.com/issues/show_bug.cgi?id=4605
More information about the Digitalmars-d
mailing list