Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Variables/F-Sharp/variables-1.fs
Normal file
5
Task/Variables/F-Sharp/variables-1.fs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
let x = 5 // Int
|
||||
let mutable y = "mutable" // Mutable string
|
||||
let recordType = { foo : 6; bar : 6 } // Record
|
||||
let intWidget = new Widget<int>() // Generic class
|
||||
let add2 x = 2 + x // Function value
|
||||
2
Task/Variables/F-Sharp/variables-2.fs
Normal file
2
Task/Variables/F-Sharp/variables-2.fs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
let intEqual (x : int) (y : int) = x = y
|
||||
let genericEqual x y : 'a = x = y
|
||||
1
Task/Variables/F-Sharp/variables-3.fs
Normal file
1
Task/Variables/F-Sharp/variables-3.fs
Normal file
|
|
@ -0,0 +1 @@
|
|||
sum <- sum + 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue