interface Iterator

interface Iterator

lib/iterator.tya:2

Iterator provides the iterator standard library API.

Source
# Iterator provides the iterator standard library API.
interface Iterator
  # has_next provides the iterator API operation.
  # @return Boolean the resulting value.
  has_next: ->
  # next provides the iterator API operation.
  # @return Any the resulting value.
  next: ->

Methods

has_next

Iterator.has_next()

lib/iterator.tya:5

has_next provides the iterator API operation.

Source
  # has_next provides the iterator API operation.
  # @return Boolean the resulting value.
  has_next: ->

next

Iterator.next()

lib/iterator.tya:8

next provides the iterator API operation.

Source
  # next provides the iterator API operation.
  # @return Any the resulting value.
  next: ->