[erlang-questions] error on first run
Wes James
comptekki@REDACTED
Fri Mar 26 03:54:16 CET 2010
On Thu, Mar 25, 2010 at 8:43 PM, Richard O'Keefe <ok@REDACTED> wrote:
>
> On Mar 26, 2010, at 3:36 PM, Wes James wrote:
>
>> * 1: syntax error before: '->'
>>
>> What am I doing wrong?
>
> Typing function definitions at the interactive loop.
> It _is_ in the book, but named functions can ONLY be
> defined inside modules, which you then load with the
> c(module_name) shell command.
>
>
I went back and saw "do not try to type functions directly in the shell"
lots to learn... :)
More information about the erlang-questions
mailing list