Re: [q-lang-users] Q Question
Brought to you by:
agraef
From: Larry G. <lg...@ac...> - 2004-10-21 00:20:37
|
Albert Graef wrote: >> ==> fac N = N*fac (N - 1) if N>0; >> ! Syntax error >> >>> fac N = N*fac (N - 1) if N>0; > > > You can't enter the script directly in the interpreter (which is just > an expression evaluator). Enter it in the upper pane of Qpad, save the > script, then run it. At the prompt, you can now enter something like > fac 100. > > HTH > Albert > Thank you, Dr. Graef, that worked. I thank you, too, Walt, for your help. I am sure I will have more questions, so I hope you will not mind when I ask . I've been an imperative language programmer for some time. I thought I would stretch my mind, and try learning a functional programming language. This started off badly, but it is looking better, now! Larry |