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