LeetCode 0520. Detect Capital in F#
URL
https://leetcode.com/problems/detect-capital/
Code
open System
let detectCapitalUse (word: string) : bool =
let cs = word |> Seq.toList
match cs with
| [] -> true
| c :: tail when Char.IsLower(c) -> tail |> List.forall Char.IsLo...
syohex.hashnode.dev1 min read