MCPcopy Create free account
hub / github.com/SolarLune/masterplan / IsParentOf

Method IsParentOf

stack.go:9–22  ·  view source on GitHub ↗
(other StackNumber)

Source from the content-addressed store, hash-verified

7type StackNumber []int
8
9func (number StackNumber) IsParentOf(other StackNumber) bool {
10
11 if len(other) <= len(number) {
12 return false
13 }
14
15 for i := 0; i < len(number); i++ {
16 if other[i] != number[i] {
17 return false
18 }
19 }
20
21 return true
22}
23
24type Stack struct {
25 // Cards []*Card

Callers 2

ChildrenMethod · 0.80
ParentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected