From 1be7e4650abcffecf1315d4c067f75381b5f29e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20=C3=98vrum?= Date: Fri, 8 Jan 2016 00:29:43 +0100 Subject: [PATCH] Clarify std.array.assocArray docs --- std/array.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/std/array.d b/std/array.d index 3625ab559a8..74fd911313b 100644 --- a/std/array.d +++ b/std/array.d @@ -335,7 +335,10 @@ unittest Returns a newly allocated associative _array from a range of key/value tuples. Params: r = An input range of tuples of keys and values. Returns: A newly allocated associative array out of elements of the input -range, which must be a range of tuples (Key, Value). +range, which must be a range of tuples (Key, Value). Returns a null associative +array reference when given an empty range. +Duplicates: Associative arrays have unique keys. If r contains duplicate keys, +then the result will contain the value of the last pair for that key in r. See_Also: $(XREF typecons, Tuple) */