我正在寻找与 ghci
相同的道德规范的:
Prelude> :t 1 + 2
1 + 2 :: Num a => a
最佳答案
在 F# Interactive 中,每次执行后都会得到:
> (+);;
val it : (int -> int -> int) = <fun:it@1>
> 1 + 2;;
val it : int = 3
> printfn "Hi";;
Hi
val it : unit = ()
关于f# - F# 有办法打印表达式的类型吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30346315/