Hide this comment

The problem is that there's no "else" following the "if", so what would happen if "hasInteger(l)" is false? There's not really such a thing as an "if statement" in F#, there are "if expressions" instead; the expression "if A then B else C" has the same overall type as B and C (which must agree), and the expression "if A then B" wihtout an else is basically the same as "if A then B else ()", so B should have type unit in this case.

By on 4/25/2010 1:58 PM ()Reply
Hide this comment

kvb:

That worked great!!! Thanks for the Help!!!

Best,

Boger

By on 4/25/2010 5:07 PM ()Reply
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

Logging in...