I have read the question F# how to extended the generic array type? and it's answer, and it's pretty close to what I wan't to do. Is it possible to extend the type 'T[][], just like it is with 'T[]?
F# extend jagged array type
183 Views Asked by torbonde At
1
The jagged array
[][]is an array[]specialized in another array.You can use
[,]which is a 2D array:But if you really want to use
[][]you can't do it with this F# specific notation, it is not possible to declare it specialized since this notation mirrors the Type Definition, so you have to do it the .NET way:It will work when accessed from C#, but from F# I think you will need F# 3.1