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

Function Pair

ast/ast.go:340–342  ·  view source on GitHub ↗

Pair constructs a pair constant. Parts can only be accessed in transforms.

(fst, snd *Constant)

Source from the content-addressed store, hash-verified

338
339// Pair constructs a pair constant. Parts can only be accessed in transforms.
340func Pair(fst, snd *Constant) Constant {
341 return pair(PairShape, fst, snd)
342}
343
344// ListCons constructs a list, using pairs. Parts can only be accessed in transforms.
345func ListCons(fst, snd *Constant) Constant {

Callers 12

makePairFunction · 0.92
intervalToConstantFunction · 0.92
pairFunction · 0.92
TestMatchPairFunction · 0.92
makeIntervalConstantFunction · 0.92
pairFunction · 0.92
EvalApplyFnFunction · 0.92
TestIntervalStartFunction · 0.92
TestIntervalEndFunction · 0.92
TestIntervalDurationFunction · 0.92
ast_test.goFile · 0.85
TestPairConstantFunction · 0.85

Calls 1

pairFunction · 0.70

Tested by 9

makePairFunction · 0.74
pairFunction · 0.74
TestMatchPairFunction · 0.74
makeIntervalConstantFunction · 0.74
pairFunction · 0.74
TestIntervalStartFunction · 0.74
TestIntervalEndFunction · 0.74
TestIntervalDurationFunction · 0.74
TestPairConstantFunction · 0.68