Running F# code with Mono

后端 未结 1 983
有刺的猬
有刺的猬 2021-01-04 22:59

I have F# 2.0.0 installed, and use mono 2.8.

let rec fib n =
    match n with
    | 1 | 2 -> 1
    | n -> fib(n-1) + fib(n-2)

let n = 40
let x = fib(n         


        
相关标签:
1条回答
  • 2021-01-04 23:25

    The F# assemblies (like FSharp.Core.dll) are probably only installed to the .Net GAC. You need to install them to Mono's GAC (Mono's gacutil.exe), or copy the assemblies into the same directory as your executable.

    0 讨论(0)
提交回复
热议问题