Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elixir i 输出给定内容的元信息 #12

Open
zhulinpinyu opened this issue Dec 4, 2018 · 0 comments
Open

elixir i 输出给定内容的元信息 #12

zhulinpinyu opened this issue Dec 4, 2018 · 0 comments
Labels

Comments

@zhulinpinyu
Copy link
Owner

示例:

iex(1)> i Enum
Term
  Enum
Data type
  Atom
Module bytecode
  .asdf/installs/elixir/1.7.4-otp-21/bin/../lib/elixir/ebin/Elixir.Enum.beam
Source
  /home/build/elixir/lib/elixir/lib/enum.ex
Version
  [50151329138467102403985512497921613221]
Compile options
  []
Description
  Use h(Enum) to access its documentation.
  Call Enum.module_info() to access metadata.
Raw representation
  :"Elixir.Enum"
Reference modules
  Module, Atom
Implemented protocols
  IEx.Info, Inspect, String.Chars, List.Chars
iex(2)> i 2
Term
  2
Data type
  Integer
Reference modules
  Integer
Implemented protocols
  IEx.Info, Inspect, String.Chars, List.Chars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant