如何在朱莉娅寻求具体的功能?lookfor
会在Matlab/GNU Octave中制作,怎么能在这里完成?
相当于lookfor
就是apropos
:
julia> apropos("fourier transform")
Base.DFT.fft
julia> apropos("concatenate")
Base.:*
Base.hcat
Base.cat
Base.flatten
Base.mapslices
Base.vcat
Base.hvcat
Base.SparseArrays.blkdiag
Core.@doc
Run Code Online (Sandbox Code Playgroud)
其他有用的函数,取决于您要查找的内容,包括methodswith
,它可以为您提供为特定参数类型指定的方法列表:
julia> methodswith(Regex)
25-element Array{Method,1}:
==(a::Regex, b::Regex) at regex.jl:370
apropos(io::IO, needle::Regex) at docs/utils.jl:397
eachmatch(re::Regex, str::AbstractString) at regex.jl:365
eachmatch(re::Regex, str::AbstractString, ovr::Bool) at regex.jl:362
...
Run Code Online (Sandbox Code Playgroud)