• Zips three lists as the list of tuple.

    Type Parameters

    • T

    Parameters

    • aList: List<T>

      The left-side list.

    Returns (<U>(bList) => (<V>(cList) => List<[T, U, V]>))

    The zipped list.

    Examples

    import { empty, fromArray, toArray, zip3 } from "./list.ts";
    import { assertEquals } from "../deps.ts";

    const aList = fromArray([1, 4, 2]);
    const bList = fromArray([3, 5, 2]);
    const cList = fromArray([3, 8, 4, 7, 6]);

    assertEquals(toArray(zip3(aList)(bList)(cList)), [
    [1, 3, 3],
    [4, 5, 8],
    [2, 2, 4],
    ]);
      • <U>(bList): (<V>(cList) => List<[T, U, V]>)
      • Type Parameters

        • U

        Parameters

        Returns (<V>(cList) => List<[T, U, V]>)

          • <V>(cList): List<[T, U, V]>
          • Type Parameters

            • V

            Parameters

            Returns List<[T, U, V]>

Generated using TypeDoc