Created
April 3, 2017 20:57
-
-
Save selcukusta/80ab2fa95310542efb5ae834bc4a0595 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 source = | |
( | |
[| for row in fifaWiki.Tables.``All-time table``.Rows -> | |
row.``Name of Team``, row.Pld, row.GF |] | |
|> Array.map(fun(name, numberOfMatches, goalsFor) -> | |
let teamName = System.Text.RegularExpressions.Regex.Replace(name, "\[\d+\]", "") | |
teamName, goalsFor, numberOfMatches) | |
|> Array.sortByDescending(fun(name, goals, matches) -> (goals)) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment