mizchi/js/builtins/iterator does not have a README file

    AsyncIterator

    #external
    pub(all) type AsyncIterator[T]

    JavaScript AsyncIterator https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/AsyncIterator

    AsyncIterator::next

    async fn[T] AsyncIterator::next(self : AsyncIterator[T]) -> T?

    JS: asyncIterator.next()

    AsyncIterator::to_any

    JsIterator

    #external
    pub(all) type JsIterator[T]

    JavaScript Iterator https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Iterator

    JsIterator::as_any

    fn[T] JsIterator::as_any(self : JsIterator[T]) ->
    Any

    JsIterator::drop

    fn[T] JsIterator::drop(self : JsIterator[T], limit : Int) -> JsIterator[T]

    JS: iterator.drop(limit) https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Iterator/drop

    JsIterator::from

    JS: Iterator.from(v) https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Iterator/from

    JsIterator::iter

    fn[T] JsIterator::iter(self : JsIterator[T]) -> Iter[T]

    to Moonbit Iterator

    JsIterator::next

    fn[T] JsIterator::next(self : JsIterator[T]) -> T?

    JS: iterator.next()

    JsIterator::take

    fn[T] JsIterator::take(self : JsIterator[T], limit : Int) -> JsIterator[T]

    JS: iterator.take(limit) https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Iterator/take

    JsIterator::toArray

    fn[T] JsIterator::toArray(self : JsIterator[T]) -> Array[T]

    JS: iterator.toArray() https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Iterator/toArray

    JsIterator::to_any

    fn[T] JsIterator::to_any(self : JsIterator[T]) ->
    Any

    Source Files