Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Julia list all functions provided by a module [closed]

I'm looking for a Julia function which, when applied to a module name, lists the functions available through the module.

Basically, I don't want to scour through source code and I've noticed that the documentation for many modules usually doesn't have everything.

like image 977
Chase CB Avatar asked Jul 31 '14 18:07

Chase CB


1 Answers

names works, mostly:

module MyMod
  test() = 3
  foo() = 4
end
names(MyMod, true)

gives me

4-element Array{Symbol,1}:
 :eval
 :test
 :foo
 :MyMod

Just need to strip out the module name and eval

like image 152
IainDunning Avatar answered Oct 23 '22 07:10

IainDunning