't' command within IEX

If I enter, for example,

t Enum.take

I see an error.

How do I use this command?

2 Likes

t is for types and s is for function specs:

iex(1)> t Enum.t
@type t() :: Enumerable.t()
iex(2)> s Enum.take
@spec take(t(), integer()) :: list()
4 Likes

see iex> h t for usage :wink:

5 Likes