Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array1 = [1, 2, 3, 4]
- array2 = %w{peter piper picked pepper}
- array3 = []
- array3 = array1.zip(array2).join(' ').split
- if array3 == ['1', 'peter', '2', 'piper', '3', 'picked', '4', 'pepper' ]
- puts "Success"
- else
- puts "Failed"
- end
Add Comment
Please, Sign In to add comment