我正在寻找道德等同于ghci:
Prelude> :t 1 + 2
1 + 2 :: Num a => a
Run Code Online (Sandbox Code Playgroud)
在 F# Interactive 中,每次执行后您都会得到:
> (+);;
val it : (int -> int -> int) = <fun:it@1>
> 1 + 2;;
val it : int = 3
> printfn "Hi";;
Hi
val it : unit = ()
Run Code Online (Sandbox Code Playgroud)