Last active
October 14, 2015 15:15
-
-
Save bethsecor/b56036ad7a6134cbcd94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File.open("word-list.txt", "r") do |f| | |
f.each_line do |line| | |
vowels = line.chars.select { |l| l =~ /[aeiouy]/ } | |
puts line if vowels == ["a","e","i","o","u","y"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment