Last active
August 29, 2015 14:06
-
-
Save Gwash3189/9b0ba2ff451d8a6150b0 to your computer and use it in GitHub Desktop.
Count occurrences of the starting character in a sequence.
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 createGroupings lineSeq = | |
lineSeq |> Seq.map (fun element -> element.[0]) | |
|> Seq.countBy id | |
|> Seq.toList | |
let list = ["asd"; "dsa"] | |
createGroupings list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment