From 5321998de0371d87b9761f0f79b29f9a25a7976f Mon Sep 17 00:00:00 2001 From: Peter Bex Date: Tue, 10 Oct 2017 12:13:01 +0200 Subject: [PATCH] Mention which keys win in case of conflicts with hash-table-merge[!] and alist->hash-table Fixes #1290 --- manual/Unit srfi-69 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/manual/Unit srfi-69 b/manual/Unit srfi-69 index 8eb222e8..14412b63 100644 --- a/manual/Unit srfi-69 +++ b/manual/Unit srfi-69 @@ -37,6 +37,9 @@ to each other, even if they contain exactly the same key/value pairs. Returns a new {{HASH-TABLE}}. The {{HASH-TABLE}} is populated from the {{A-LIST}}. The keyword arguments are per {{make-hash-table}}. +If a key occurs multiple times in {{A-LIST}}, the first occurrance +will be used in the hash table. + ==== hash-table? @@ -237,7 +240,8 @@ Deletes all entries in {{HASH-TABLE}}. (hash-table-merge HASH-TABLE-1 HASH-TABLE-2) Returns a new {{HASH-TABLE}} with the union of {{HASH-TABLE-1}} and -{{HASH-TABLE-2}}. +{{HASH-TABLE-2}}. Keys that exist in both tables will be taken from +{{HASH-TABLE-1}}. ==== hash-table-merge! @@ -245,7 +249,8 @@ Returns a new {{HASH-TABLE}} with the union of {{HASH-TABLE-1}} and (hash-table-merge! HASH-TABLE-1 HASH-TABLE-2) Returns {{HASH-TABLE-1}} as the union of {{HASH-TABLE-1}} and -{{HASH-TABLE-2}}. +{{HASH-TABLE-2}}. Keys that exist in both tables will be taken from +{{HASH-TABLE-1}}. ==== hash-table-map -- 2.11.0