I just came across this surprising (to me) behaviour, that a single character is not considered as a scalar:
julia> myfun(a) = a
myfun (generic function with 1 method)
julia> myfun.(1)
1
julia> myfun.('a')
1-element Array{Char,1}:
'a'
I would had expected that the last line just return a single ‘a’ and not [‘a’]. Is there a particular reason for the current behaviour ? I use julia 1.0.1.