Guest User

Untitled

a guest
Feb 19th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. irb(main):010:0> a=["a","b","c","d","e"]
  2. => ["a", "b", "c", "d", "e"]
  3. irb(main):011:0> b=["b","c","z","e","f"]
  4. => ["b", "c", "z", "e", "f"]
  5. irb(main):012:0> Diff.new(a,b)
  6. => [[["-", 0, "a"]], [["-", 3, "d"], ["+", 2, "z"]], [["+", 4, "f"]]]
Add Comment
Please, Sign In to add comment