Erlang
Using Erlang
Erlang modules are available as atoms. For example, the Erlang math module is available as :math
:
iex> :math.pi
3.141592653589793
Inspect an Erlang module
Use module_info
on Erlang modules you wish to inspect:
iex> :math.module_info
[module: :math,
exports: [pi: 0, module_info: 0, module_info: 1, pow: 2, atan2: 2, sqrt: 1,
log10: 1, log2: 1, log: 1, exp: 1, erfc: 1, erf: 1, atanh: 1, atan: 1,
asinh: 1, asin: 1, acosh: 1, acos: 1, tanh: 1, tan: 1, sinh: 1, sin: 1,
cosh: 1, cos: 1],
attributes: [vsn: [113168357788724588783826225069997113388]],
compile: [options: [{:outdir,
'/private/tmp/erlang20160316-36404-xtp7cq/otp-OTP-18.3/lib/stdlib/src/../ebin'},
{:i,
'/private/tmp/erlang20160316-36404-xtp7cq/otp-OTP-18.3/lib/stdlib/src/../include'},
{:i,
'/private/tmp/erlang20160316-36404-xtp7cq/otp-OTP-18.3/lib/stdlib/src/../../kernel/include'},
:warnings_as_errors, :debug_info], version: '6.0.2',
time: {2016, 3, 16, 16, 40, 35},
source: '/private/tmp/erlang20160316-36404-xtp7cq/otp-OTP-18.3/lib/stdlib/src/math.erl'],
native: false,
md5: <<85, 35, 110, 210, 174, 113, 103, 228, 63, 252, 81, 27, 224, 15, 64,
44>>]