Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion container/gmap/gmap_hash_k_v_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (m *KVMap[K, V]) SetNilChecker(nilChecker NilChecker[V]) {

// isNil checks whether the given value is nil.
// It first checks if a custom nil checker function is registered and uses it if available,
// otherwise it performs a standard nil check using any(v) == nil.
// otherwise it falls back to the default empty.IsNil function.
func (m *KVMap[K, V]) isNil(v V) bool {
if m.nilChecker != nil {
return m.nilChecker(v)
Expand Down
2 changes: 1 addition & 1 deletion container/gmap/gmap_list_k_v_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (m *ListKVMap[K, V]) SetNilChecker(nilChecker NilChecker[V]) {

// isNil checks whether the given value is nil.
// It first checks if a custom nil checker function is registered and uses it if available,
// otherwise it performs a standard nil check using any(v) == nil.
// otherwise it falls back to the default empty.IsNil function.
func (m *ListKVMap[K, V]) isNil(v V) bool {
if m.nilChecker != nil {
return m.nilChecker(v)
Expand Down
2 changes: 1 addition & 1 deletion container/gset/gset_t_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (set *TSet[T]) SetNilChecker(nilChecker NilChecker[T]) {

// isNil checks whether the given value is nil.
// It first checks if a custom nil checker function is registered and uses it if available,
// otherwise it performs a standard nil check using any(v) == nil.
// otherwise it falls back to the default empty.IsNil function.
func (set *TSet[T]) isNil(v T) bool {
if set.nilChecker != nil {
return set.nilChecker(v)
Expand Down
2 changes: 1 addition & 1 deletion container/gtree/gtree_k_v_avltree.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (tree *AVLKVTree[K, V]) SetNilChecker(nilChecker NilChecker[V]) {

// isNil checks whether the given value is nil.
// It first checks if a custom nil checker function is registered and uses it if available,
// otherwise it performs a standard nil check using any(v) == nil.
// otherwise it falls back to the default empty.IsNil function.
func (tree *AVLKVTree[K, V]) isNil(v V) bool {
if tree.nilChecker != nil {
return tree.nilChecker(v)
Expand Down
2 changes: 1 addition & 1 deletion container/gtree/gtree_k_v_btree.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (tree *BKVTree[K, V]) SetNilChecker(nilChecker NilChecker[V]) {

// isNil checks whether the given value is nil.
// It first checks if a custom nil checker function is registered and uses it if available,
// otherwise it performs a standard nil check using any(v) == nil.
// otherwise it falls back to the default empty.IsNil function.
func (tree *BKVTree[K, V]) isNil(v V) bool {
if tree.nilChecker != nil {
return tree.nilChecker(v)
Expand Down
2 changes: 1 addition & 1 deletion container/gtree/gtree_k_v_redblacktree.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (tree *RedBlackKVTree[K, V]) SetNilChecker(nilChecker NilChecker[V]) {

// isNil checks whether the given value is nil.
// It first checks if a custom nil checker function is registered and uses it if available,
// otherwise it performs a standard nil check using any(v) == nil.
// otherwise it falls back to the default empty.IsNil function.
func (tree *RedBlackKVTree[K, V]) isNil(v V) bool {
if tree.nilChecker != nil {
return tree.nilChecker(v)
Expand Down
Loading