I have a problem i can’t find a solution for.

Lets say I have a abstract supertype

```
abstract A
```

and a subtype

```
type B <: A
value::Vector
end
```

(others might want to have `value`

e.g. to be a matrix or something)

And I implemented a few functions for each subtype, maybe `f1(p::B)::Float64`

(and for other subtypes, too…) and now I’d like to implement a function such as

```
function myVFun(p::Vector{A},lambda::Integer)
sum( [ f1(v) for v in p] )
# but really this is of course more complicated involving 2-3 functions all available for each subtype of A
return ...
end
```

Somehow the method dispatch does not call this function if I now have a `Vector{B}`

(because this is not a subtype of `Vector{A}`

?). But however I qould like to be able to implement (and call) such a function using vectors of subtypes. Because all functions I apply to the elements of `p::Vector{A}`

are available for `B <: A`

…

How can I do that?