mirror of
https://github.com/janet-lang/janet
synced 2026-10-11 18:21:42 +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:
+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