Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "iterator"

Index

Functions

Const $iter

  • $iter(xform: FnAny<Transducer<any, any>>, args: any[], impl?: iterator1): undefined | IterableIterator<any>

iterator

  • iterator<A, B>(xform: TxLike<A, B>, xs: Iterable<A>): IterableIterator<B>

iterator1

  • iterator1<A, B>(xform: TxLike<A, B>, xs: Iterable<A>): IterableIterator<B>
  • Optimized version of iterator for transducers which are guaranteed to:

    1. Only produce none or a single result per input
    2. Do not require a completion reduction step

    Type parameters

    • A

    • B

    Parameters

    • xform: TxLike<A, B>

      -

    • xs: Iterable<A>

      -

    Returns IterableIterator<B>

Generated using TypeDoc