-
-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
Hi,
This example is not possible:
type City struct {
Name string
}
cityHash := func(c City) string {
return c.Name
}
g := graph.New(cityHash)
//...
f := func(c City) bool {
return c.Name == "London"
}
graph.DFS(g, "Paris", f)
Warning: "Cannot use 'f' (type func(c City) bool) as the type func(string) bool"
Am I missing something? Because the docs says this should be possible.
Metadata
Metadata
Assignees
Labels
No labels