fork download
  1. #indent "off"
  2.  
  3. let rec f x =
  4. match x with
  5. | 1 -> 1
  6. | 2 -> 1
  7. | _ -> f (x - 1) * f (x - 2)
  8.  
  9. let z = f 5
  10. printf "F(5) = %d" z
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/LwSB5Z/prog.fs(1,1): warning FS0062: This construct is for ML compatibility. Consider using a file with extension '.ml' or '.mli' instead. You can disable this warning by using '--mlcompatibility' or '--nowarn:62'.

/home/LwSB5Z/prog.fs(9,9): error FS0003: This value is not a function and cannot be applied. Did you forget to terminate a declaration?
stdout
Standard output is empty