C# Class CsEquivalents.ModuleExample.GameFunctions

Create a submodule
Afficher le fichier Open project: swlaschin/fsharp-decompiled

Méthodes publiques

Méthode Description
ChangeScore ( int newScore, FinalGameScore game ) : FinalGameScore

Change the score for an existing game

CreateGame ( string name ) : FinalGameScore

Create a game with score=12

MapScore ( int>.FSharpFunc f, FinalGameScore game ) : FinalGameScore

Example of a higher order function

Method Details

ChangeScore() public static méthode

Change the score for an existing game
public static ChangeScore ( int newScore, FinalGameScore game ) : FinalGameScore
newScore int
game FinalGameScore
Résultat FinalGameScore

CreateGame() public static méthode

Create a game with score=12
public static CreateGame ( string name ) : FinalGameScore
name string
Résultat FinalGameScore

MapScore() public static méthode

Example of a higher order function
public static MapScore ( int>.FSharpFunc f, FinalGameScore game ) : FinalGameScore
f int>.FSharpFunc
game FinalGameScore
Résultat FinalGameScore