1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-24 06:03:17 +00:00

Fix return value of update.

This commit is contained in:
Calvin Rose 2019-11-15 22:49:18 -06:00
parent d71cf093bb
commit 7553b277db

View File

@ -1033,7 +1033,7 @@
data structure ds."
[ds key func & args]
(def old (get ds key))
(set (ds key) (func old ;args)))
(put ds key (func old ;args)))
(defn merge-into
"Merges multiple tables/structs into a table. If a key appears in more than one