diff --git a/dict-type.go b/dict-type.go index 4be213a..d935e03 100644 --- a/dict-type.go +++ b/dict-type.go @@ -12,6 +12,12 @@ import ( type DictType map[any]any +func MakeDict() (dict *DictType) { + d := make(DictType) + dict = &d + return +} + func newDict(dictAny map[any]*term) (dict *DictType) { var d DictType if dictAny != nil { @@ -124,7 +130,6 @@ func (dict *DictType) merge(second *DictType) { } func (dict *DictType) setItem(key any, value any) (err error) { - (*dict)[key]=value + (*dict)[key] = value return } -