Here group is defined as a value (that happens to be a function) since syntactically "let group = ..." is a value definition because there are no syntactic arguments after 'group'. Values cannot be generic. You need to define group as a syntactic function with arguments after 'group'. Functions can be generic (obviously).

1
let group xs = Seq.groupBy (fun a -> a) xs
By on 7/10/2009 4:18 PM ()

thanks

By on 7/10/2009 4:35 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