Skip to content

Instantly share code, notes, and snippets.

@JefClaes
Created December 7, 2014 12:54
Show Gist options
  • Select an option

  • Save JefClaes/301b352f0dc8f13a3bf3 to your computer and use it in GitHub Desktop.

Select an option

Save JefClaes/301b352f0dc8f13a3bf3 to your computer and use it in GitHub Desktop.
Spinning the wheel in F# (6)
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