Sha256: d5dbe021ebd54570e6dd4d22350203416302354c39fa6f703eadca9a514009df
Contents?: true
Size: 323 Bytes
Versions: 262
Compression:
Stored size: 323 Bytes
Contents
module Acronym open System open System.Text.RegularExpressions let acronym (phrase:string) = let acronymChar = Char.ToUpperInvariant << Seq.head let words = Regex.Matches(phrase, "[A-Z]+[a-z]*|[a-z]+") let chars = [|for word in words do yield word.Value |> acronymChar|] new String(chars)
Version data entries
262 entries across 262 versions & 1 rubygems