<double post>

By on 1/5/2011 9:09 PM ()

This is expected. In F#, type inference flows from left to right, which is one reason that the pipeline operator (|>) is used so often. Thus, this will work:

1
2
3
4
let deleteBuffers (buffers:ComputeBuffer<float> list) =
    buffers |> List.map (fun buffer -> buffer.Dispose()) |> ignore
    ()
By on 1/5/2011 9:09 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper