fork download
  1. let rec fib n =
  2. match n with
  3. | 0 | 1 -> 1
  4. | _ -> fib (n - 1) + fib (n - 2)
  5.  
  6. printf "%d" f 5
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/4cuDYY/prog.fs(6,8): error FS0001: Type mismatch. Expecting a
    'a -> 'b -> 'c    
but given a
    'a -> unit    
The type ''a -> 'b' does not match the type 'unit'

/home/4cuDYY/prog.fs(6,13): error FS0039: The value or constructor 'f' is not defined
stdout
Standard output is empty