コード例 #1
0
ファイル: pvector.go プロジェクト: dmiller/go-seq
func (p *PVector) Hash() uint32 {
	if p.hash == 0 {
		p.hash = sequtil.HashSeq(p.Seq())
	}

	return p.hash
}
コード例 #2
0
ファイル: plist.go プロジェクト: dmiller/go-seq
func (p *PList) Hash() uint32 {
	if p.hash == 0 {
		p.hash = sequtil.HashSeq(p)
	}

	return p.hash
}
コード例 #3
0
ファイル: cons.go プロジェクト: dmiller/go-seq
// Hash computes a Hash value for the Cons, treated as a sequence.
func (c *Cons) Hash() uint32 {
	if c.hash == 0 {
		c.hash = sequtil.HashSeq(c)
	}

	return c.hash
}