@mikuroxina/mini-fn
    Preparing search index...

    Function unzip

    • Unzips the list of tuple into the tuple of list.

      Type Parameters

      • A
      • B

      Parameters

      Returns [List.List<A>, List.List<B>]

      The unzipped tuple.

      Examples

      const [aList, bList] = unzip(
      fromArray([
      [2, 3],
      [5, 4],
      [11, 3],
      ]),
      );
      expect(toArray(aList)).toStrictEqual([2, 5, 11]);
      expect(toArray(bList)).toStrictEqual([3, 4, 3]);