Guest User

Untitled

a guest
Feb 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1.  
  2. >> v = %w(a b c d e f)
  3. => ["a", "b", "c", "d", "e", "f"]
  4. >> a.replace(%w[p e d c ])
  5. => ["p", "e", "d", "c"]
  6. >>
Add Comment
Please, Sign In to add comment