Hello!
I want to apply different functions based on variable value. I think, that Val() is an instrument for this.
But this is not main quastion. @code_warntype for 4 functions give that: Main.f1(x2, 3, %8)::Diagonal{Int64,Array{Int64,1}}
but for 5 give me that: Main.f1(x2, 3, %8)::Any
. Why?