class Dry::Schema::Path

def &(other)

Other tags:
    Api: - private
def &(other)
  self.class.new(
    keys.take_while.with_index { |key, index| other.keys[index].eql?(key) }
  )
end