Library for checking types. Similar from PHP
's gettype
or JavaScript
's typeof
. Created this package to better understand how Protocol
works.
Note: try IEx.Info.info("hello world")
, Elixir's implementation via shell or visit Elixir's Protocol guide instead of this package, since it's based from that module.
If available in Hex, the package can be installed
by adding getypex
to your list of dependencies in mix.exs
:
def deps do
[
{:getypex, "~> 0.1.1"}
]
end
Docs can be found at https://hexdocs.pm/getypex.
iex(1)> Getypex.check("hello Getypex")
"String (UTF-8)"
iex(2)> Getypex.check({:ok, "message"})
"Tuple"