LeetCode 2108. Find First Palindromic String in the Array in F#
URL
Find First Palindromic String in the Array - LeetCode
Code
let firstPalindrome (words: string list) : string =
words
|> List.tryFind (fun s -> Seq.toArray s = (Seq.toArray s |> Array.rev))
|> Option.defaultValue ""