func (m *Metric) Iterate(f func(Item)) {
	if m.Item != nil {
		f(m.Item)
	}
	if m.sub[0] != nil {
		m.sub[0].Iterate(f)
	}
	if m.sub[1] != nil {
		m.sub[1].Iterate(f)
	}
}
// Iterate calls f on each node of the XOR-tree that has a non-nil item.
Iterate calls f on each node of the XOR-tree that has a non-nil item.
// Iterate calls f on each node of the XOR - tree that has a non - nil item .
func (m *Metric) Iterate(f func(Item)) {
	if m.Item != nil {
		f(m.Item)
	}
	if m.sub[0] != nil {
		m.sub[0].Iterate(f)
	}
	if m.sub[1] != nil {
		m.sub[1].Iterate(f)
	}
}
func ( m * Metric ) Iterate ( f func ( Item ) ) { if m . Item != nil { f ( m . Item ) } if m . sub [ 0 ] != nil { m . sub [ 0 ] . Iterate ( f ) } if m . sub [ 1 ] != nil { m . sub [ 1 ] . Iterate ( f ) } }
Iterate calls f on each node of the XOR-tree that has a non-nil item.
Iterate calls f on each node of the XOR - tree that has a non - nil item .