In Elixir I can do the following
Last login: Mon Jul 16 20:05:01 on ttys001
Nathaniels-MacBook-Pro:Documents nathanielsuchy$ iex
Erlang/OTP 21 [erts-10.0.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]
Interactive Elixir (1.6.6) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> x = 5
5
iex(2)> i x
Term
5
Data type
Integer
Reference modules
Integer
Implemented protocols
IEx.Info, Inspect, String.Chars, List.Chars
iex(3)>
In Erlang the “i” alias to an inspect function does not exist. Is there a way I can get the same info about a variable in the Erlang shell as I do in Elixir’s shell?