0
comment
comment
on 7/16/2011 4:13 AM
F# provides literal expressions for tuples, F# lists, arrays, enumerables, and other generic types. The elements of a tuple expression are separated by commas. The elements of all other kinds of list-like expressions are separated by semicolons.
F# Expression F# Type Representation C# Type Representation
17, 3, 8
int * int * int
Tuple<int, int, int>
[17; 3; 8]
int list
FSharpList<int>
[|17; 3; 8|]
int[]
int[]
seq {yield 17; yield 3; yield[...]