Hi,

there is nothing wrong with your function but with the call to the function - the compiler don't know the type of [] and your function is generic (so the compiler can't interfere the type from there)

Just try "list_head ([] : int list)" this should give you your own exception ;)

By on 4/7/2009 9:20 PM ()

Fantastic! It works!

Thank you so much.

By on 4/7/2009 9:24 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