Clojure has this handy way to view a function's definition in REPL. Is there one in Elixir REPL ?
Asked
Active
Viewed 132 times
2 Answers
2
No, there isn't a convenient way yet.

José Valim
- 50,409
- 12
- 130
- 115
-
1I like the 'yet.' part of your answer :) +1 – ComputerFellow May 01 '15 at 17:20
-
1@José Valim is this available yet? It'd be *super* handy! – Christopher Davies Mar 22 '17 at 20:42
0
Well, I'm going to post this as an answer, even though it's not the same as "source". In IEX, you can type h function_name
to see the documentation for function_name
. It's basically Clojure REPL's doc
feature. So far, in Elixir, this is good enough for most cases where I want source
.

Christopher Davies
- 4,461
- 2
- 34
- 33