Find words which contains all the vowels: Difference between revisions
Content added Content deleted
m (→{{header|Haskell}}: (simpler)) |
|||
Line 1,269: | Line 1,269: | ||
or, adding the restriction to words of more than 10 characters, and using Data.Set to identify words with a set of 5 unique vowel characters, which have no more than 5 vowel characters in total: |
or, adding the restriction to words of more than 10 characters, and using Data.Set to identify words with a set of 5 unique vowel characters, which have no more than 5 vowel characters in total: |
||
<syntaxhighlight lang="haskell">import Data. |
<syntaxhighlight lang="haskell">import Data.Set (Set, fromList, member, size) |
||
import Data.Set (Set, fromList, member, size) |
|||
---- WORDS OVER 10 CHARS WHICH CONTAIN EACH VOWEL ONCE --- |
---- WORDS OVER 10 CHARS WHICH CONTAIN EACH VOWEL ONCE --- |