JsIteratorImpl

class JsIteratorImpl<T>(iter: Iterator<T>) : JsIterator<T> , ProxyIterator, ProxyIterable, ProxyObject

Default implementation of a JavaScript-compatible iterator, via JsIterator of T and ProxyIterator.

See also

for the Elide-specific interface for JavaScript iterators.

ProxyIterator

for the interface provided by Truffle to mimic iterators.

ProxyIterable

for the interface provided by Truffle to mimic iterable objects.

Constructors

Link copied to clipboard
constructor(iter: Iterator<T>)

Functions

Link copied to clipboard
open override fun getIterator(): Any
Link copied to clipboard
open override fun getMember(key: String): Any
Link copied to clipboard
open override fun getMemberKeys(): Array<String>
Link copied to clipboard
open override fun getNext(): T?
Link copied to clipboard
open override fun hasMember(key: String): Boolean
Link copied to clipboard
open operator override fun hasNext(): Boolean
Link copied to clipboard
open operator override fun next(): JsIterator.JsIteratorResult<T>

Fetch the next value from the current iterator.

Link copied to clipboard
open override fun putMember(key: String?, value: Value?)
Link copied to clipboard
open override fun removeMember(key: String?): Boolean
Link copied to clipboard

Iterator: Terminate and return with the provided value.

Link copied to clipboard
open fun <T, E : Error> throw(err: E): JsIterator.JsIteratorResult<T>

Iterator: Terminate with the provided err.