Guest User

Untitled

a guest
May 27th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def check array1, array2
  2. list = []
  3. array2.each do |a|
  4. return false unless t = array1.index(a)
  5. list << array1.slice!(t)
  6. end
  7. return list
  8. end
Add Comment
Please, Sign In to add comment