Hi,
Is there a way to do something like :
using StaticArrays
f(x) = "This is the fallback generic function"
f(x::MVector{M,T}) where {T,M<=10} = "You passed a MVector with less than 10 ellements"
?
I have the following error :
julia> f(x::MVector{M,T}) where {T,M<=10} = "You passed a MVector with less than 10 ellements"
ERROR: syntax: invalid variable expression in "where" around REPL[26]:1
Stacktrace:
[1] top-level scope
@ REPL[26]:1
julia>