P b*_*sak 5 ocaml functional-programming
OCaml声明的实际含义是什么?
let func (v: A.a) : unit =
#rest of the function
Run Code Online (Sandbox Code Playgroud)
let func (v: A.a) : unit =
第一个:手段v is a parameter and its type is expected to be A.a.
第二种:方式func is expected to return a type of unit