Tenir compte du fragment de code suivant dans VS2010 Beta 1:Création d'un Array2D en F # (VS2010 Beta 1)
let array = Array2D.zeroCreate 1000 500
Cela produit une erreur, à savoir:
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.
Puis-je définir explicitement le type (dans mon cas une grille de ficelle)?