Find words which contains all the vowels: Difference between revisions

Content added Content deleted
Line 1,600: Line 1,600:
=={{header|Ruby}}==
=={{header|Ruby}}==
<lang ruby>File.open("unixdict.txt").each(chomp: true) do |word|
<lang ruby>File.open("unixdict.txt").each(chomp: true) do |word|
puts word if word.size > 10 && word.chars.tally.values_at('a','e','i','o','u').all?(1)
puts word if word.size > 10 && word.chars.tally.values_at('a','e','i','o','u').all?(1)
end
end
</lang>
</lang>
Line 1,630: Line 1,630:
sulfonamide
sulfonamide
</pre>
</pre>

=={{header|Swift}}==
=={{header|Swift}}==
<lang swift>import Foundation
<lang swift>import Foundation