Explain the ' notation in F# -
i'm learning f#, when type code in visual studio , run them on f# interactive shows me things like
val foo : x:'a -> 'a i imagine mean foo function receive paramater x of type, , returns value of same x's type.
but what ' mean? many functions show such thing on intellisense too.
the single quote mark (') means type of parameter generic. can inferred, illustration gave, or can explicitly applied.
see here under implicitly generic constructs more information.
f#
No comments:
Post a Comment