let iter2D (map: 'T byref -> unit) (arr: 'T[][]) =
for y = 0 to arr.Length - 1 do
let row = arr.[y]
for x = 0 to row.Length - 1 do
let mutable elem = arr.[y].[x]
map &elem
最后一行显示:“此处无法使用变量 'elem' 的地址。”这是什么问题?
MakeByRefType()
返回的是什么?IsByRef
属性又是用来做什么的? - user4003407FastAction(fun bla ...)
会导致2个分配...看起来没有办法避免,因为F#没有像C#那样的单独匿名委托语法。 - Asik