Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list_one =<<END
- foo@example.org
- bar@example.org
- baz@example.org
- qux@example.org
- ham@example.org
- ham@example.org
- END
- list_two =<<END
- foo@example.org
- bar@example.com
- baz@example.com
- qux@example.com
- ham@example.com
- ham@example.com
- END
- def merge str1, str2
- (str1+str2).split.uniq
- end
- puts merge(list_one, list_two).join("\n")
Add Comment
Please, Sign In to add comment