# File lib/ole/storage/base.rb, line 862
      def self.flatten_helper children
        return EOT if children.empty?
        i = children.length / 2
        this = children[i]
        this.prev, this.next = [(0...i), (i+1..-1)].map { |r| flatten_helper children[r] }
        this.idx
      end