From 5f3378213b0170c20de13eb4c58ce4adf04172fa Mon Sep 17 00:00:00 2001 From: Harry Prins <26745575+harryvederci@users.noreply.github.com> Date: Fri, 6 Aug 2021 18:33:49 +0200 Subject: [PATCH] Improve docstring for the invert function. --- src/boot/boot.janet | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 1e902c42..4641fdaa 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -1323,8 +1323,9 @@ (defn invert `Returns a table where the keys of an associative data structure - are the values, and the values of the keys. If multiple keys have the same - value, one key will be ignored.` + are the values, and the values are the keys. If multiple keys in the + original mapped to the same value, only one of those values will + become a key in the returned table.` [ds] (def ret @{}) (loop [k :keys ds]