mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-08-14 23:32:32 +02:00
36-add-route-path-into-route-object
Added the route path into the route object so that we can see what meshes packets are routed across.
This commit is contained in:
@ -66,3 +66,13 @@ func Filter[V any](list []V, f filterFunc[V]) []V {
|
||||
|
||||
return newList
|
||||
}
|
||||
|
||||
func Contains[V any](list []V, proposition func(V) bool) bool {
|
||||
for _, elem := range list {
|
||||
if proposition(elem) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user