Find words which contains more than 3 e vowels: Difference between revisions
Find words which contains more than 3 e vowels (view source)
Revision as of 18:36, 5 October 2023
, 8 months ago→{{header|Haskell}}
(→{{header|Haskell}}: Added a variant, defining the predicate in terms of a single fold) |
|||
Line 1,185:
p :: String -> Bool
p = uncurry (&&) .
rule :: Char -> (Int, Bool) -> (Int, Bool)
|