
class RepVal is Sequence{
  static new(value){
    return new(value, -1)
  }

  construct new(value, count){
    _value = value
    _count = count
  }

  iterate(iter){
    if(_count < 0) return true
    if(!iter) return 0
    if(iter >= _count) return null
    return iter + 1
  }

  iteratorValue(iter){_value}
}