Stream: helpdesk (published)

Topic: List submodules in Base


view this post on Zulip Archie Call (Apr 28 2021 at 20:23):

Does anyone know how to list (via a script) all the submodules within Base? I have found a few by exploring the manual, but I'm sure it is not comprehensive.

view this post on Zulip Mason Protter (Apr 28 2021 at 20:25):

julia> filter(x -> getproperty(Base, x) isa Module, names(Base, all=true))
39-element Vector{Symbol}:
 :Base
 :BaseDocs
 :BinaryPlatforms
 :Broadcast
 :Cartesian
 :Checked
 :CoreLogging
 :Docs
 :Enums
 :Experimental
 :FastMath
 :Filesystem
 :GC
 :GMP
 
 :PCRE
 :PermutedDimsArrays
 :Rounding
 :Ryu
 :SimdLoop
 :Sort
 :StackTraces
 :Sys
 :TOML
 :Threads
 :Unicode
 :_RepeatInnerOuter
 :__toplevel__

view this post on Zulip Mason Protter (Apr 28 2021 at 20:26):

Does this help?

view this post on Zulip Archie Call (Apr 28 2021 at 20:40):

It sure does Mason. I really appreciate your taking the time here. I was fussing around for two hours and you solved it for me in 2 minutes!

view this post on Zulip Mason Protter (Apr 28 2021 at 20:44):

Happy to be of service!


Last updated: Nov 06 2024 at 04:40 UTC