Quantcast
Channel: User Tarmil - Stack Overflow
Viewing all articles
Browse latest Browse all 38

Answer by Tarmil for How to specify the result type for F# function's signature?

$
0
0

You can put a type annotation for the return value at the end of the declaration line:

static member TryParse(s: string): SocialAccount option =

As an aside, static member X = fun ... -> is not equivalent to static member X(...) =. The former creates a property, rather than a method.


Viewing all articles
Browse latest Browse all 38

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>