Passing abstract structs to a function

It is not (see documentation and other discussions here).
You need to explicitly specify the type as Vector{<:Sample} (and maybe the second type as Vector{<:Function}).

5 Likes