MCPcopy Create free account
hub / github.com/buger/jsonparser / sameTree

Function sameTree

parser.go:512–525  ·  view source on GitHub ↗

SYS-REQ-008

(p1, p2 []string)

Source from the content-addressed store, hash-verified

510
511// SYS-REQ-008
512func sameTree(p1, p2 []string) bool {
513 minLen := len(p1)
514 if len(p2) < minLen {
515 minLen = len(p2)
516 }
517
518 for pi_1, p_1 := range p1[:minLen] {
519 if p2[pi_1] != p_1 {
520 return false
521 }
522 }
523
524 return true
525}
526
527const stackArraySize = 128
528

Callers 2

EachKeyFunction · 0.85

Calls

no outgoing calls

Tested by 1