Exemple #1
0
func (p *PVector) Hash() uint32 {
	if p.hash == 0 {
		p.hash = sequtil.HashSeq(p.Seq())
	}

	return p.hash
}
Exemple #2
0
func (p *PList) Hash() uint32 {
	if p.hash == 0 {
		p.hash = sequtil.HashSeq(p)
	}

	return p.hash
}
Exemple #3
0
// 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
}