Added ability to detect if a node should be removed from the mesh.

This commit is contained in:
Tim Beatham
2023-10-21 18:08:45 +01:00
parent 976dbf2613
commit c4dc984fc7
8 changed files with 129 additions and 72 deletions

View File

@ -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