mirror of
https://github.com/janet-lang/janet
synced 2026-11-28 18:03:09 +00:00
Align local names in merge and merge-into (#1833)
Co-authored-by: sogaiu <983021772@users.noreply.github.com>
This commit is contained in:
1 parent
5e23c99b0b
commit
71f7e43009
1 file changed
+6
-6
+6
-6
@@ -1898,9 +1898,9 @@
|
||||
previous ones. Returns `tab`.
|
||||
``
|
||||
[tab & dicts]
|
||||
(loop [c :in dicts
|
||||
key :keys c]
|
||||
(put tab key (in c key)))
|
||||
(loop [d :in dicts
|
||||
key :keys d]
|
||||
(put tab key (in d key)))
|
||||
tab)
|
||||
|
||||
(defn merge
|
||||
@@ -1911,9 +1911,9 @@
|
||||
``
|
||||
[& dicts]
|
||||
(def container @{})
|
||||
(loop [c :in dicts
|
||||
key :keys c]
|
||||
(put container key (in c key)))
|
||||
(loop [d :in dicts
|
||||
key :keys d]
|
||||
(put container key (in d key)))
|
||||
container)
|
||||
|
||||
(defn keys
|
||||
|
||||
Reference in new issue
Block a user