I apologize if this is a silly question, but I'm a newbie to OCaml and I wasn't able to find examples of this anywhere. Could somebody give me a simple example of the Ocaml syntax for defining a helper function inside of another function?
Thank you!
Here you go:
let outer x y =
let inner z = x + z
in inner y
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