• Zips four lists as the list of tuple.

    Type Parameters

    • T

    Parameters

    • aList: List<T>

      The list used as the first element of tuple.

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

    The zipped list.

    Examples

    import { empty, fromArray, toArray, zip4 } 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]);
    const dList = fromArray([6, 2, 9, 8]);

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

        • U

        Parameters

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

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

            • V

            Parameters

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

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

                • W

                Parameters

                Returns List<[T, U, V, W]>

Generated using TypeDoc