MCPcopy
hub / github.com/dgraph-io/dgraph / peek

Method peek

dql/math.go:42–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func (s *mathTreeStack) peek() *MathTree {
43 x.AssertTruef(!s.empty(), "Trying to peek empty stack")
44 return s.a[len(s.a)-1]
45}
46
47// MathTree represents math operations in tree form for evaluation.
48type MathTree struct {

Callers 2

evalMathStackFunction · 0.45
parseMathFuncFunction · 0.45

Calls 2

emptyMethod · 0.95
AssertTruefFunction · 0.92

Tested by

no test coverage detected