Addendum
Memoization
Lazy expression
let printAndForward x = printfn $"{x}"; x
let a = lazy (printAndForward "a")
let b = printAndForward "b"
// > b
printfn $"{a.Value} and {b}"
// > a
// > a and b
printfn $"{a.Value} and c"
// > a and cLazy active pattern
Lazy active patternOrganizing functions
Methods
Method Examples
Function vs Method
Feature
Function
Method
Function vs Delegate
Interop with the BCL
void method
Calling a BCL method with N arguments
out Parameter - In Cβ―
out Parameter - In Cβ―out Parameter - In Fβ―
out Parameter - In Fβ―Instantiate a class with new?
new?Calling an overloaded method
Last updated