Well yes:

A -> B -> C

stands for a function taking a A and returning a function that takes an B and returns a C

If you type something like fun a b -> blabla you get this, if you type fun (a,b) -> you get an function taking a TUPEL (a,b) for input so if the return type is C you get (A,B) -> C

BTW: F# is "based" on OCAML and this is a descendant of ML

But of course all this stuff gets translatet into IL and there you get something very diffent ... but you should only care for this stuff if you are planning to use F#, C#/VB etc. side by side.

By on 3/25/2009 4:10 AM ()

Thanks

By on 3/27/2009 12:49 AM ()
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