Function mapTransducer

Creates a transducer that applies a mapping function to each element.

  • Type Parameters

    • T

      The input type.

    • U

      The output type after transformation.

    Parameters

    • fn: ((x: T) => U)

      The transformation function.

        • (x): U
        • Parameters

          Returns U

    Returns Transducer<T, U>

    • A transducer that applies fn to each value.