The Curious Case of the Missing Method Part 3

Submitted By:
david

Difficulty:
Elementary

Tags:
methods, enumerables

Instructions:
Fill in the missing method. Hint: it has a rather short name.

Code:
a1 = [1, 2, 3]
a2 = [2, 3, 4]
b1 = ["durham", "bartow", "zwolle"]
b2 = ["nc", "fl", "nl"]

assert_equal a1.___(a2), [[1, 2], [2, 3], [3, 4]]
assert_equal [10, 11, 12].___(a1, a2), [[10, 1, 2], [11, 2, 3], [12, 3, 4]]
assert_equal b1.___(b2), [["durham", "nc"], ["bartow", "fl"], ["zwolle", "nl"]]

Your Solution

Ruby 1.9.3

Back to Problems