Querying i("my string") returned data type of BitString
Running h(BitString) command in iex returns Could not load module BitString, got: nofile.
Compared to other data types that return module info on prompt, this particular module doesn't seem to serve any response. How do I view info regarding BitString in iex?
Queried i('my string') instead but this is of a List data type instead.
h(List) does return info on this module type.
I am interested in info pertaining to BitString data type
...
IEx.Helpers.i/1prints a result of applyingIEx.Info.info/1to the term. As per documentation,That said,
BitStringis just a name. If you are interested in the modules that are used to handle the type, you might read whati/1printed to the end.and see Reference modules:
String,:binary.The confusion is most likely provoked by the fact that there is no explicit mapping
type→module, because types in elixir are not like types in OOP languages, the type is either defined by erlang and then it has no defining module at all, only modules providing helper functions to deal with it, or is a struct, then it’s defined in some particular module.