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: adapter.rb
    path of file: ./repos/dynamoid/lib/dynamoid
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'concurrent/atom'
require 'dynamoid/adapter_plugin/aws_sdk_v3'

module Dynamoid
  # Adapter's
    
    def delete(table, ids, options = {})
      range_key = options[:range_key] # array of range keys that matches the ids passed in
      if ids.respond_to?(:each)
        ids = if range_key.respond_to?(:each)
                # turn ids into array of arrays each element being hash_key, range_key
                ids.each_with_index.map { |id, i| [id, range_key[i]] }
              else
                range_key ? ids.map { |id| [id, range_key] } : ids
              end