What is actually meant by the OCaml statement?
let func (v: A.a) : unit =
#rest of the function
let func (v: A.a) : unit =
The first :
means v is a parameter and its type is expected to be A.a
.
The second :
means func is expected to return a type of unit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With