Consider the following code fragment in VS2010 Beta 1:
let array = Array2D.zeroCreate 1000 500
This produces an error, namely:
error FS0030: Value restriction. The value 'array' has been inferred to have generic type val array : '_a [,] Either define 'array' as a simple data term, make it a function with explicit arguments or, if you do not intend for it to be generic, add a type annotation.
Can I explicitly set the type (in my case a grid of string)?
You can explicitly specify the type like this:
For further information on the value restriction you might want to take a look at this F#-Wiki page.