Created
December 7, 2014 12:54
-
-
Save JefClaes/301b352f0dc8f13a3bf3 to your computer and use it in GitHub Desktop.
Spinning the wheel in F# (6)
This file contains hidden or 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 groupedResults = | |
| results | |
| |> Seq.groupBy (fun x -> x.Label) | |
| |> Seq.map (fun (x, y) -> (x, (y |> Seq.length))) | |
| printfn "%A" groupedResults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment