On 5/19/07, Raul Miller <[EMAIL PROTECTED]> wrote:



You have an extra right parenthesis there.

Get rid of it, and it should work.
   rec_case=:(fib]-1:)(+(fib]-2:))

It compiles but returns 1 when it should not.

  fib =: base_case ` rec_case @. t
  base_case =: 1:
  rec_case=:(fib]-1:)(+(fib]-2:))
  fib 6
1
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to