Hi,

If you don't need the b value, I suggest you to write:

1
let a, _ = fx

or

1
let a = fst fx

If fx is a method, you can also overload it (but I don't recommend this solution) so that it returns either int or int*int, although it might require type annotations.

Laurent.

By on 6/7/2008 7:01 PM ()

ok

finally, I prefer use let a, b = fx and not use b value
also let a, _ = fx is good choice

thanks

By on 6/7/2008 7:16 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