Find words with alternating vowels and consonants: Difference between revisions
Find words with alternating vowels and consonants (view source)
Revision as of 21:25, 19 January 2021
, 3 years ago→{{header|Haskell}}
Line 569:
=={{header|Haskell}}==
<lang haskell>import Data.List
import Data.List.Split (chunksOf)
------ WORDS WITHOUT SUCCESSIVE VOWELS OR CONSONANTS -----
Line 587 ⟶ 588:
mapM_ putStrLn $
((:) =<< (<> " matching words:\n") . show . length) $
filter isLongAlternator (lines s)</lang>
{{Out}}
<pre>67 matching words:
|