js.util.iterable.JsIterable Maven / Gradle / Ivy
package js.util.iterable;
import js.lang.Any;
import org.teavm.jso.JSBody;
public interface JsIterable extends Any {
@JSBody(script = "return this[Symbol.iterator]()")
> R getIterator();
default Iterable iterable() {
return () -> getIterator().getJavaIterator();
}
}