elixir - 使用 i 来查看某个变量的具体情况(类似与 ruby 的 .inspect)

访问量: 268

参考:https://stackoverflow.com/questions/28377135/how-do-you-check-for-the-type-of-variable-in-elixir

iex(10)> i %{ 1 => 10, 2 => 20}
Term
%{1 => 10, 2 => 20}
Data type
Map
Reference modules
Map
Implemented protocols
Collectable, Enumerable, IEx.Info, Inspect

订阅/RSS Feed

Subscribe

分类/category