lib/ordered_list/position.rb
# Iterates over all bits in the binary tree path, yielding either a 0 or
# a 1. It does not yield the trailing bit that marks the end of the binary
# tree path.
Iterates over all bits in the binary tree path, yielding either a 0 or
a 1. It does not yield the trailing bit that marks the end of the binary
tree path.
Iterates over all bits in the binary tree path yielding either a 0 or a 1 . It does not yield the trailing bit that marks the end of the binary tree path .
def each
      0.upto(length - 1) do |i|
        yield self[i]
      end
    end
def each 0 . upto ( length - 1 ) do | i | yield self [ i ] end end
Iterates over all bits in the binary tree path, yielding either a 0 or
a 1.
Iterates over all bits in the binary tree path yielding either a 0 or a 1 .