Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- irb(main):010:0> a=["a","b","c","d","e"]
- => ["a", "b", "c", "d", "e"]
- irb(main):011:0> b=["b","c","z","e","f"]
- => ["b", "c", "z", "e", "f"]
- irb(main):012:0> Diff.new(a,b)
- => [[["-", 0, "a"]], [["-", 3, "d"], ["+", 2, "z"]], [["+", 4, "f"]]]
Add Comment
Please, Sign In to add comment