fullname

fullname(m::Module)

Get the fully-qualified name of a module as a tuple of symbols. For example, fullname(Base.Pkg) gives (:Base,:Pkg), and fullname(Main) gives ().

Examples

"""
    fullname(m::Module)

Get the fully-qualified name of a module as a tuple of symbols.

# Examples
```julia
julia> fullname(Base.Pkg)
(:Base, :Pkg)

julia> fullname(Main)
()

"""


In the Julia programming language, the `fullname` function is used to obtain the fully-qualified name of a module as a tuple of symbols. Here are a few examples of how it can be used:

1. **Get the fullname of a module:**
   ```julia
   julia> fullname(Base.Pkg)
   (:Base, :Pkg)

This example returns the fully-qualified name of the Base.Pkg module as a tuple of symbols (:Base, :Pkg).

  1. Handle a module without a fullname:
    julia> fullname(Main)
    ()

    In this case, the Main module does not have a fully-qualified name and therefore returns an empty tuple ().

Please note that the fullname function only works with module objects.

See Also

assert, backtrace, code_llvm, code_lowered, code_native, code_typed, code_warntype, :@which, compilecache, current_module, eval, finalize, finalizer, fullname, function_module, function_name, include_dependency, InterruptException, invoke, isconst, isdefined, isgeneric, methodswith, method_exists, module_name, module_parent, require, subtypes, unsafe_load, workspace, __precompile__,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: