1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-27 00:40:26 +00:00

Refer to argument. Change past tense to present.

This commit is contained in:
Harry Prins 2021-08-07 18:03:10 +02:00 committed by GitHub
parent 5f3378213b
commit 7edf77561b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1322,10 +1322,10 @@
ret)
(defn invert
`Returns a table where the keys of an associative data structure
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.`
``Returns a table where the keys of an associative data structure
are the values, and the values are the keys. If multiple keys in `ds`
are 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]