func (m *SortedDictionary[KT, VT]) Pop() VT {
	m.lock.Lock()
	defer m.lock.Unlock()
	if len(m.items) == 0 {
		var zv VT
		return zv
	}
	v := m.items[0].val
	m.items = m.items[1:]
	return v
}
// Pop removes and returns the value of the first item.
Pop removes and returns the value of the first item.
// Pop removes and returns the value of the first item .
func (m *SortedDictionary[KT, VT]) Pop() VT {
	m.lock.Lock()
	defer m.lock.Unlock()
	if len(m.items) == 0 {
		var zv VT
		return zv
	}
	v := m.items[0].val
	m.items = m.items[1:]
	return v
}
func ( m * SortedDictionary [ KT , VT ] ) Pop ( ) VT { m . lock . Lock ( ) defer m . lock . Unlock ( ) if len ( m . items ) == 0 { var zv VT return zv } v := m . items [ 0 ] . val m . items = m . items [ 1 : ] return v }
Pop removes and returns the value of the first item.
Pop removes and returns the value of the first item .