mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-22 02:51:21 -05:00
23 lines
290 B
Go
23 lines
290 B
Go
package types
|
|
|
|
type Collection interface {
|
|
Value
|
|
Len() uint64
|
|
Empty() bool
|
|
sequence() sequence
|
|
}
|
|
|
|
func valueSlicesEqual(v1 []Value, v2 []Value) bool {
|
|
if len(v1) != len(v2) {
|
|
return false
|
|
}
|
|
|
|
for i, _ := range v1 {
|
|
if !v1[i].Equals(v2[i]) {
|
|
return false
|
|
}
|
|
}
|
|
|
|
return true
|
|
}
|