func (m *SortedDictionary[KT, VT]) Remove(k KT) bool {
	m.lock.Lock()
	defer m.lock.Unlock()
	if i, ok := m.search(k); ok {
		m.items = append(m.items[:i], m.items[i+1:]...)
		return true
	}
	return false
}
// Remove deletes the key from the dictionary.
Remove deletes the key from the dictionary.
// Remove deletes the key from the dictionary .
func (m *SortedDictionary[KT, VT]) Remove(k KT) bool {
	m.lock.Lock()
	defer m.lock.Unlock()
	if i, ok := m.search(k); ok {
		m.items = append(m.items[:i], m.items[i+1:]...)
		return true
	}
	return false
}
func ( m * SortedDictionary [ KT , VT ] ) Remove ( k KT ) bool { m . lock . Lock ( ) defer m . lock . Unlock ( ) if i , ok := m . search ( k ) ; ok { m . items = append ( m . items [ : i ] , m . items [ i + 1 : ] ... ) return true } return false }
Remove deletes the key from the dictionary.
Remove deletes the key from the dictionary .