ReadSeq[A: A]

[Source]

The readable interface of a sequence.

interface box ReadSeq[A: A]

Public Functions

size

[Source]

Returns the number of elements in the sequence.

fun box size()
: USize val

Returns

apply

[Source]

Returns the i-th element of the sequence. Raises an error if the index is out of bounds. Note that this returns this->A, not A.

fun box apply(
  i: USize val)
: this->A ?

Parameters

Returns

  • this->A ?

values

[Source]

Returns an iterator over the elements of the sequence. Note that this iterates over this->A, not A.

fun box values()
: Iterator[this->A] ref^

Returns

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/builtin-ReadSeq