You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: recursive_double_linear_search.rb
    path of file: ./repos/Ruby/searches
    
    the code of the file until where you have to start completion: # Iterate through the array to find the index of key using recursion.

def recursive_double_linear_search(data, key, left = 0
    
def recursive_double_linear_search(data, key, left = 0, right = 0)
  right &&= data.length - 1

  return -1 if left > right

  return left if data[left] == key
  return right if data[right] == key

  recursive_double_linear_search(data, key, left + 1, right - 1)
end