Method
parseArrayOrSet
(typ super.Type, bytes scode.Bytes)
Source from the content-addressed store, hash-verified
| 105 | } |
| 106 | |
| 107 | func (d *defuse) parseArrayOrSet(typ super.Type, bytes scode.Bytes) []super.Value { |
| 108 | var elems []super.Value |
| 109 | for it := bytes.Iter(); !it.Done(); { |
| 110 | elems = append(elems, d.eval(super.NewValue(typ, it.Next()))) |
| 111 | } |
| 112 | return elems |
| 113 | } |
| 114 | |
| 115 | func (d *defuse) unify(elems []super.Value) (super.Type, scode.Bytes) { |
| 116 | seen := make(map[super.Type]struct{}) |
Tested by
no test coverage detected