Skip to content

Instantly share code, notes, and snippets.

@aph5nt aph5nt/fs
Last active Nov 7, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.