interface Iterable

interface Iterable

lib/iterable.tya:2

Iterable provides the iterable standard library API.

Source
# Iterable provides the iterable standard library API.
interface Iterable
  # iter provides the iterable API operation.
  # @return Iterator the resulting value.
  iter: ->
  # sequence provides the iterable API operation.
  # @return Sequence the resulting value.
  sequence: ->
    IterableSequence(self)

Methods

iter

Iterable.iter()

lib/iterable.tya:5

iter provides the iterable API operation.

Source
  # iter provides the iterable API operation.
  # @return Iterator the resulting value.
  iter: ->

sequence

Iterable.sequence()

lib/iterable.tya:8

sequence provides the iterable API operation.

Source
  # sequence provides the iterable API operation.
  # @return Sequence the resulting value.
  sequence: ->
    IterableSequence(self)