ListCons constructs a list, using pairs. Parts can only be accessed in transforms.
(fst, snd *Constant)
| 343 | |
| 344 | // ListCons constructs a list, using pairs. Parts can only be accessed in transforms. |
| 345 | func ListCons(fst, snd *Constant) Constant { |
| 346 | return pair(ListShape, fst, snd) |
| 347 | } |
| 348 | |
| 349 | // MapCons constructs a map, using pairs. Parts can only be accessed in transforms. |
| 350 | func MapCons(key, val, rest *Constant) Constant { |