Typable v0.2.0 Typable protocol View Source
Protocol which describes type identifier of Elixir term
Link to this section Summary
Functions
Returns module which represents type identifier of given term
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: Typable.t()
t() :: Typable.t()
Link to this section Functions
Link to this function
type_of(t) View Source
Returns module which represents type identifier of given term
Examples
iex> Typable.type_of(1)
Integer
iex> Typable.type_of(self())
PID
iex> Typable.type_of(%URI{})
URI