Skip to content

Instantly share code, notes, and snippets.

@aph5nt
Last active November 7, 2015 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aph5nt/0e8dc00edd6ed0c92132 to your computer and use it in GitHub Desktop.
Save aph5nt/0e8dc00edd6ed0c92132 to your computer and use it in GitHub Desktop.
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