Getypex
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.
Installation
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"}
]
endDocs can be found at https://hexdocs.pm/typex.
Usage
iex(1)> Getypex.check("hello Getypex")
"String (UTF-8)"
iex(2)> Getypex.check({:ok, "message"})
"Tuple"