Skip to content

Commit

Permalink
Merge pull request #434 from ralphtandetzky/patch-3
Browse files Browse the repository at this point in the history
Update hash-map.dd
  • Loading branch information
AndrejMitrovic committed Dec 9, 2013
2 parents dbd0ae7 + a1e229b commit 4c2d0d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hash-map.dd
Expand Up @@ -6,9 +6,6 @@ $(SPEC_S Associative Arrays,
and can be sparsely populated. The index for an associative array
is called the $(I key), and its type is called the $(I KeyType).)

$(P $(BLUE $(B Note:)) The built-in associative arrays do not preserve the order
of the keys inserted into the array.)

$(P Associative arrays are declared by placing the $(I KeyType)
within the [ ] of an array declaration:
)
Expand All @@ -21,6 +18,10 @@ $(SPEC_S Associative Arrays,
func(b["hello"]); // pass 3 as parameter to func()
---------

$(P $(BLUE $(B Note:)) The built-in associative arrays do not preserve the order
of the keys inserted into the array. In particular, in a $(D foreach) loop the
order in which the elements are iterated is unspecified.)

$(P Particular keys in an associative array can be removed with the
remove function:
)
Expand Down

0 comments on commit 4c2d0d5

Please sign in to comment.