Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # downcase and split are defined in String class
- words = IO.read("file").
- split(/\W+/).
- select { |s| s =~ /^[aeiou]/i }.
- map { |s| s.downcase }.
- uniq.
- sort
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement