def iterator()

in scala-repl/src/main/scala/org/jetbrains/ztools/scala/handlers/impls/AbstractCollectionHandler.scala [30:45]


  def iterator(obj: Any): Iterator

  def length(obj: Any): Int

  override def handle(scalaInfo: ScalaVariableInfo, loopback: Loopback, depth: Int): mutable.Map[String, Any] = mutable.Map[String, Any](
    ResNames.LENGTH -> length(scalaInfo.value),
    ResNames.VALUE -> withJsonArray { json =>
      val startTime = System.currentTimeMillis()
      val it = iterator(scalaInfo.value)
      var index = 0
      while (it.hasNext && index < limit && !checkTimeoutError(scalaInfo.path, startTime, timeout)) {
        val id = scalaInfo.path
        json += loopback.pass(it.next, s"$id[$index]")
        index += 1
      }
    }