def each
      return enum_for(:each) unless block_given?
      @array.each { |pos| yield cat_from_int pos }
      self
    end
Returns an enumerator that enumerates on categorical data
@return [Enumerator] an enumerator that enumerates over data stored in vector