KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
another noob question regarding F#. If I have the following code... let ExeC = printfn "c" 3 let ExeB b = printfn "b" 2 let ExeA = printfn "a" 1 printfn "Example %d " ExeA printfn "Example %d " (ExeB 1) printfn "Example %d " ExeC The output is as follows... c a Example 1 b Example 2 Example 3 What seems unusual here is the order that the code is executing in. In a previous question Brian mentioned something about expressions, I was hoping someone could explain this a bit more. It almost seems like the compiler is intelligently pre-executing things to calculate values... but I don't know?
Tags (comma-separated)
Save Edits
Cancel