Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_array = [[1,2,3], ["victor", "daniel"], "dog"]
- my_array.each do |x|
- if x != Array
- print x
- else
- x.each do |s|
- puts s
- end
- end
- end
- # What wrong ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement