Perhaps you should use an array instead of a list, since the array has a fixed length:
// create an array of length = 2, initialized with zeros.
let cValues : int[] = Array.create 2 0
cValues.IsFixedSize // returns true
: , . ( ) , fst snd.
, . , , , , , F #. , . , .
let fourTuple = (5, 10, 2, 3)
let _,_,third,_ = fourTuple
printfn "%d" third // displays "2"
, , , :
type ListOfC = {c1 : int; c2 : int}
type a' = {b' : float; c' : ListOfC}
, , script . , , , . .
type ListOfTwo(firstInt : int, secondInt : int) =
member this.First = firstInt
member this.Second = secondInt
let myListOfTwo = ListOfTwo(4, 5)
myListOfTwo.First
type a = {b : float; c : ListOfTwo }