My guess is that you're using the System.Collections.Generic.List instead of F#'s list. Perhaps you opened System.Collections.Generic?

The BCL's List is an auto-resizing array, and F# aliases "ResizeArray" to it. If you want F# lists, then just use "type list" to specify the type.

let rec function arg (custom_type_list : CustomType list) =

Should work fine.

By on 3/16/2009 2:47 PM ()

Yes I do have System.Collections.Generic.List open, and your solution fixed it. Thanks!

By on 3/16/2009 2:55 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