vendor/gems/diff-lcs-1.1.2/lib/diff/lcs.rb
def __inverse_vector(a, vector)
      inverse = a.dup
      (0 ... vector.size).each do |ii|
        inverse[vector[ii]] = ii unless vector[ii].nil?
      end
      inverse
    end
# If +vector+ maps the matching elements of another collection onto this
# Enumerable, compute the inverse +vector+ that maps this Enumerable
# onto the collection. (Currently unused.)
If +vector+ maps the matching elements of another collection onto this
Enumerable, compute the inverse +vector+ that maps this Enumerable
onto the collection. (Currently unused.)
If + vector + maps the matching elements of another collection onto this Enumerable compute the inverse + vector + that maps this Enumerable onto the collection . ( Currently unused . )
def __inverse_vector(a, vector)
      inverse = a.dup
      (0 ... vector.size).each do |ii|
        inverse[vector[ii]] = ii unless vector[ii].nil?
      end
      inverse
    end
def __inverse_vector ( a , vector ) inverse = a . dup ( 0 ... vector . size ) . each do | ii | inverse [ vector [ ii ] ] = ii unless vector [ ii ] . nil? end inverse end
If +vector+ maps the matching elements of another collection onto this
Enumerable, compute the inverse +vector+ that maps this Enumerable
onto the collection.
If + vector + maps the matching elements of another collection onto this Enumerable compute the inverse + vector + that maps this Enumerable onto the collection .
a
vector