mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-08-14 15:28:36 +02:00
Added ability to detect if a node should be removed from the mesh.
This commit is contained in:
@ -9,6 +9,11 @@ func MapValuesWithExclude[K comparable, V any](m map[K]V, exclude map[K]struct{}
|
||||
values := make([]V, len(m)-len(exclude))
|
||||
|
||||
i := 0
|
||||
|
||||
if len(m)-len(exclude) <= 0 {
|
||||
return values
|
||||
}
|
||||
|
||||
for k, v := range m {
|
||||
if _, excluded := exclude[k]; excluded {
|
||||
continue
|
||||
|
Reference in New Issue
Block a user