Sha256: e1813f349cf1c5980c44edd00b6a5d3cbb72a2aa9cef268904b3a0d110048fbb
Contents?: true
Size: 232 Bytes
Versions: 76
Compression:
Stored size: 232 Bytes
Contents
module WordCount open System.Text.RegularExpressions let countWords (phrase: string) = Regex.Matches(phrase.ToLowerInvariant(), @"\w+('\w+)*") |> Seq.cast<Match> |> Seq.countBy (fun m -> m.Value) |> Map.ofSeq
Version data entries
76 entries across 76 versions & 1 rubygems