我在 shell 中工作,我想查看函数的帮助io:format/1
。
我的思路如下:
- 执行
help()
- 我找到命令m().
- 执行
m(io)
- 我看到io
模块中的函数列表
问题:如何io:format/1
从 erlang Shell 深入查找函数的帮助?
输出help().
:
1> help().
...
m(Mod) -- information about module <Mod>
memory() -- memory allocation information
...
true
输出m(io).
:
2> m(io).
Module io compiled: Date: July 10 2013, Time: 10.46
Compiler options: [{outdir,"/build/buildd/erlang-16.b.1-dfsg/lib/stdlib/src/../ebin"},
{i,"/build/buildd/erlang-16.b.1-dfsg/lib/stdlib/src/../include"},
{i,"/build/buildd/erlang-16.b.1-dfsg/lib/stdlib/src/../../kernel/include"},
warnings_as_errors,debug_info]
Object file: /usr/lib/erlang/lib/stdlib-1.19.2/ebin/io.beam
Exports:
columns/1 parse_erl_form/2
columns/0 parse_erl_form/3
format/1 parse_erl_form/4
format/2 printable_range/0
format/3 put_chars/2
...
parse_erl_exprs/4 setopts/2
parse_erl_exprs/3 setopts/1
parse_erl_form/1 write/1
write/2
ok