You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find it desirable that in map(f, T[]), if f is type stable on T, then map would return an empty array of the correct type. At the moment it returns an empty array of type T.
I ran into this when trying to do roughly this:
function f(x::Vector)
y = map(symbol, x)
return f(y)
end
function f(x::Vector{Symbol})
# Do fun.
end
The text was updated successfully, but these errors were encountered:
I find it desirable that in
map(f, T[])
, iff
is type stable onT
, thenmap
would return an empty array of the correct type. At the moment it returns an empty array of typeT
.I ran into this when trying to do roughly this:
The text was updated successfully, but these errors were encountered: