iter-fns - v0.13.0
    Preparing search index...

    Function map

    • Maps over an iterable using a projection.

      The projection must be a pure function, otherwise iterating in reverse will not yield the same items as iterating forwards.

      Type Parameters

      • T

        type of the item

      • U

        type of the projected result

      Parameters

      Returns ReverseSizedIterable<U>

    • Maps over an iterable using a projection.

      The projection must be a pure function, otherwise iterating in reverse will not yield the same items as iterating forwards.

      When called with this overload, the index is not available.

      Type Parameters

      • T

        type of the item

      • U

        type of the projected result

      Parameters

      Returns ReverseIterable<U>

    • Maps over an iterable using a projection.

      Type Parameters

      • T

        type of the item

      • U

        type of the projected result

      Parameters

      Returns SizedIterable<U>

    • Maps over an iterable using a projection.

      Type Parameters

      • T

        type of the item

      • U

        type of the projected result

      Parameters

      • iterable: Iterable<T>

        the iterable

      • f: (x: T, i: number) => U

        the projection

      Returns Iterable<U>