MapCons constructs a map, using pairs. Parts can only be accessed in transforms.
(key, val, rest *Constant)
| 348 | |
| 349 | // MapCons constructs a map, using pairs. Parts can only be accessed in transforms. |
| 350 | func MapCons(key, val, rest *Constant) Constant { |
| 351 | e := pair(PairShape, key, val) |
| 352 | return pair(MapShape, &e, rest) |
| 353 | } |
| 354 | |
| 355 | // StructCons constructs a struct, using pairs. Parts can only be accessed in transforms. |
| 356 | func StructCons(label, val, rest *Constant) Constant { |