Content deleted Content added
Tom Morris (talk | contribs) added scala |
Fixed D examples so that it compiles with DMD2 |
||
Line 194:
=== D ===
[[D programming language|D]] offers direct support for associative arrays
in the core language - they are implemented as a chaining hash table with binary trees<ref>{{Cite web|url=http://
<source lang="d">
int main() {
phone_book["Sally Smart"] = "555-9999";
phone_book["John Doe"] = "555-1212";
Line 213:
<source lang="d">
foreach (key, value; phone_book) {
}
</source>
|