Find words with alternating vowels and consonants: Difference between revisions
Find words with alternating vowels and consonants (view source)
Revision as of 22:27, 20 January 2021
, 3 years ago→{{header|Haskell}}: Edited a comment to match new title, and used Data.Bifunctor.
Thundergnat (talk | contribs) m (Thundergnat moved page Find words which odd letters are consonants and even letters are vowels or vice versa to Find words with alternating vowels and consonants: Verbose title) |
(→{{header|Haskell}}: Edited a comment to match new title, and used Data.Bifunctor.) |
||
Line 569:
=={{header|Haskell}}==
<lang haskell>import
import Data.Bifunctor (bimap)
import Data.List.Split (chunksOf)
------- WORDS
isLongAlternator :: String -> Bool
isLongAlternator s =
9 < length s
&& all (
isVowel :: Char -> Bool
|