Sha256: b0104d7f6246482d7d387900128253e91e329d140d3b936f2d4e79fbd7a04023
Contents?: true
Size: 289 Bytes
Versions: 264
Compression:
Stored size: 289 Bytes
Contents
module PhoneNumber open System let parsePhoneNumber (input: string) = let digits = input.ToCharArray() |> Array.filter (Char.IsDigit) |> String match digits.Length with | 10 -> Some digits | 11 when digits.Chars 0 = '1' -> Some (digits.Substring(1)) | _ -> None
Version data entries
264 entries across 264 versions & 1 rubygems