lib/ordered_list/position/intermediable.rb
# Creates and returns a new position based on the common ancestor of the
# given bit array enumerators. The enumerators are guaranteed to be at
# the position directly after the common ancestor has been found.
Creates and returns a new position based on the common ancestor of the
given bit array enumerators. The enumerators are guaranteed to be at
the position directly after the common ancestor has been found.
Creates and returns a new position based on the common ancestor of the given bit array enumerators . The enumerators are guaranteed to be at the position directly after the common ancestor has been found .
def ancestor_of_enums(one, other)
        Position.new.tap do |ancestor|
          loop do
            break unless one.peek == other.peek
            ancestor << (one.next & other.next)
          end
        end
      end
def ancestor_of_enums ( one , other ) Position . new . tap do | ancestor | loop do break unless one . peek == other . peek ancestor << ( one . next & other . next ) end end end
Creates and returns a new position based on the common ancestor of the
given bit array enumerators.
Creates and returns a new position based on the common ancestor of the given bit array enumerators .
one
other