MCPcopy
hub / github.com/expr-lang/expr / Equal

Method Equal

types/types.go:168–180  ·  view source on GitHub ↗
(t Type)

Source from the content-addressed store, hash-verified

166}
167
168func (a array) Equal(t Type) bool {
169 if t == Any {
170 return true
171 }
172 at, ok := t.(array)
173 if !ok {
174 return false
175 }
176 if a.of.Equal(at.of) {
177 return true
178 }
179 return false
180}
181
182func (a array) String() string {
183 return fmt.Sprintf("Array{%s}", a.of.String())

Callers

nothing calls this directly

Calls 1

EqualMethod · 0.65

Tested by

no test coverage detected