This expression should be of type 'unit', but has type 'int'...

Today, I started learning F# to use Infer.NET. It's a shame MS doesn't support it any more. The second line and already got an error. Not a good sign...

This however is useless. Unlike Haskell, F# doesn't print the result unless explicitly stated. So we need to be a bit more clever than that:

Leave Comment

Your email address will not be published.

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box