mirror of
https://github.com/janet-lang/janet
synced 2024-12-27 17:00:27 +00:00
Refer to argument. Change past tense to present.
This commit is contained in:
parent
5f3378213b
commit
7edf77561b
@ -1322,10 +1322,10 @@
|
|||||||
ret)
|
ret)
|
||||||
|
|
||||||
(defn invert
|
(defn invert
|
||||||
`Returns a table where the keys of an associative data structure
|
``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
|
are the values, and the values are the keys. If multiple keys in `ds`
|
||||||
original mapped to the same value, only one of those values will
|
are mapped to the same value, only one of those values will
|
||||||
become a key in the returned table.`
|
become a key in the returned table.``
|
||||||
[ds]
|
[ds]
|
||||||
(def ret @{})
|
(def ret @{})
|
||||||
(loop [k :keys ds]
|
(loop [k :keys ds]
|
||||||
|
Loading…
Reference in New Issue
Block a user