Fsharp: Function
define function
- write a tutorial on how to define function in fsharp, and covering fixed number of param, rest param, or optional param, named param, default values.
- https://x.com/i/grok/share/1ecRWd3K1vs9Q6AIir7G4M2i7
let fadd x y = x + y printfn "%d" (fadd 3 4) // 7