我正在尝试探索运营商的类型,例如::
F#interactive.
但我收到这些消息:
Unexpected symbol '::' in expression. Expected ')' or other token.
Run Code Online (Sandbox Code Playgroud)
即使我用它包围它(::)
.
我是这样做的:
> let inline showmecons a b = a :: b;;
val inline showmecons : 'a -> 'a list -> 'a list
Run Code Online (Sandbox Code Playgroud)
要么
> let inline showmepow a b = a ** b;;
val inline showmepow :
^a -> ^b -> ^a when ^a : (static member Pow : ^a * ^b -> ^a)
Run Code Online (Sandbox Code Playgroud)