我能够将常数乘法到数组中,但无法对除法运算符执行相同的操作。预期?
julia> 2 * [1,2,3]
3-element Array{Int64,1}:
2
4
6
julia> 2 / [1,2,3]
ERROR: MethodError: no method matching /(::Int64, ::Array{Int64,1})
Closest candidates are:
/(::Union{Int128, Int16, Int32, Int64, Int8, UInt128, UInt16, UInt32, UInt64, UInt8}, ::Union{Int128, Int16, Int32, Int64, Int8, UInt128, UInt16, UInt32, UInt64, UInt8}) at int.jl:38
/(::Union{Int16, Int32, Int64, Int8, UInt16, UInt32, UInt64, UInt8}, ::BigInt) at gmp.jl:381
/(::T<:Integer, ::T<:Integer) where T<:Integer at int.jl:36
...