Purpose of tick (apostrophe) in F# value names?

f#

Solution

Yes, as @Lee pointed, `'` is a valid identifier.

Though, the purpose of `'` at the end of identifiers generally is to denote the value as something related or similar to the value named without the ending `'`. This is borrowed from mathematics, F# being a functional language, for denoting something as being prime since A is pronounced `aye` where A' is `aye-prime`.

Problem

I'm going through a tutorial on Function Composition, and I keep seeing the ' operator used at the end of a value declaration. I know that it means a generic when it precedes a parameter, but what does it mean when you see it like: ``` let add x y = x + y let myFunc' = add 10 ``` The only thing I can see is that the ' is just another character in the identifier. Is that right? Because if I use that same example, using myFunc gives a not defined error, where myFunc' does resolve.

Original source

Related problems