If you want to look up in the source code where and how a particular method is defined, use @which. For example: if arr = [1, 2] then @which sort(arr) returns sort(v::AbstractArray{T,1}) where T) in Base.Sort at sort.jl:683 at sort.jl:334.

@show shows the expression and its result, which is handy for checking the embedded results: 456 * 789 + (@show 2 + 3) gives 2 + 3 => 5     359789.

Get Julia 1.0 Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.