MCPcopy
hub / github.com/google/mangle / ListCons

Function ListCons

ast/ast.go:345–347  ·  view source on GitHub ↗

ListCons constructs a list, using pairs. Parts can only be accessed in transforms.

(fst, snd *Constant)

Source from the content-addressed store, hash-verified

343
344// ListCons constructs a list, using pairs. Parts can only be accessed in transforms.
345func 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.
350func MapCons(key, val, rest *Constant) Constant {

Callers 7

ConvertValueFunction · 0.92
TestJSONtoStructFunction · 0.92
ProtoToStructFunction · 0.92
TestEvalApplyFnFunction · 0.92
EvalApplyFnFunction · 0.92
EvalReduceFnFunction · 0.92
ListFunction · 0.85

Calls 1

pairFunction · 0.70

Tested by 2

TestJSONtoStructFunction · 0.74
TestEvalApplyFnFunction · 0.74