C# Class CsEquivalents.ModuleExample.GameFunctions

Create a submodule
Mostra file Open project: swlaschin/fsharp-decompiled

Public Methods

Method 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 method

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

CreateGame() public static method

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

MapScore() public static method

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