Avatar
func foo(cat: Cat) -> Void { ... } func consumeFoo(_ f: (Animal) -> Void) { ... } consumeFoo(foo) (edited)