-
-
Save aph5nt/0e8dc00edd6ed0c92132 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let filter (game : Game) = game.Status = GameStatus.Refunded || game.Status = GameStatus.Completed | |
games | |
|> toSeq | |
|> Seq.filter(fun(k,v) -> filter v) | |
|> Seq.map(fun(k,v) -> v) | |
|> Seq.sortByDescending(fun(v) -> v.DrawingAt) | |
|> Seq.map (fun(v) -> toPreviousGame v) | |
|> Seq.toArray |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment