Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does the # symbol mean in an f# function signature? [duplicate]

I have seen a function defined like this:

let private applyTarget (logger:#ILogger) ceiling target =
    logger.Debug "enforce ceiling"
    match target > ceiling with
    | true -> ceiling | false -> target

What does the # symbol mean in the signature?

Whats the difference between logger:ILogger and logger:#ILogger?

like image 532
Anish Patel Avatar asked Jun 02 '16 17:06

Anish Patel


People also ask

What does the fox say Meaning?

Speaking of the meaning of the song, Vegard characterizes it as coming from "a genuine wonder of what the fox says, because we didn't know". Although interpreted by some commentators as a reference to the furry fandom, the brothers have stated they did not know about its existence when producing "The Fox".

What does a real fox say?

One of the most common fox vocalizations is a raspy bark. Scientists believe foxes use this barking sound to identify themselves and communicate with other foxes. Another eerie fox vocalization is a type of high-pitched howl that's almost like a scream.

How can I find a song by the sound?

On your phone, touch and hold the Home button or say "Hey Google." Ask "What's this song?" Play a song or hum, whistle, or sing the melody of a song. Hum, whistle, or sing: Google Assistant will identify potential matches for the song.


1 Answers

A type signature #t is called "flexible type", and is just shorthand for 'a when 'a :> t.

That is, #t means "any subtype of t".

like image 93
Fyodor Soikin Avatar answered Sep 26 '22 03:09

Fyodor Soikin