The inconsistency between real and abs caught me by surprise:
julia> versioninfo()
Julia Version 0.6.0-dev.2464
Commit d233cf9 (2017-01-29 05:47 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin16.3.0)
CPU: Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
WORD_SIZE: 64
BLAS: libgfortblas
LAPACK: liblapack
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, ivybridge)
julia> abs([1,2,3])
WARNING: abs{T <: Number}(x::AbstractArray{T}) is deprecated, use abs.(x) instead.
Stacktrace:
[1] depwarn(::String, ::Symbol) at ./deprecated.jl:62
[2] abs(::Array{Int64,1}) at ./deprecated.jl:50
[3] eval(::Module, ::Any) at ./boot.jl:236
[4] eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:66
[5] macro expansion at ./REPL.jl:97 [inlined]
[6] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73
while loading no file, in expression starting on line 0
3-element Array{Int64,1}:
1
2
3
julia> real([1,2,3])
3-element Array{Int64,1}:
1
2
3