Skip to content

Commit

Permalink
[stdlib] Improve dflt(Hash, k, v)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyash-b committed Mar 2, 2024
1 parent 3d0c20b commit a1ba734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stdlib.ngs
Original file line number Diff line number Diff line change
Expand Up @@ -3775,7 +3775,7 @@ doc %EX - my_hash.dflt(k, []).push(elt)
doc %RET - Hash value, the already-existed or new.
F dflt(h:Hash, k, v) {
if k not in h {
h[k] = v.Value()
h[k] = v.Value(k)
}
h[k]
}
Expand Down

0 comments on commit a1ba734

Please sign in to comment.