5

Clojure has this handy way to view a function's definition in REPL. Is there one in Elixir REPL ?

Alex Miller
  • 69,183
  • 25
  • 122
  • 167
Shanthakumar
  • 757
  • 6
  • 23

2 Answers2

2

No, there isn't a convenient way yet.

José Valim
  • 50,409
  • 12
  • 130
  • 115
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