Skip to main content
Module

x/fae/mod.ts>zip

A functional module for Deno inspired from Ramda.
Latest
variable zip
import { zip } from "https://deno.land/x/fae@v1.1.1/mod.ts";

Creates a new list out of two passed lists list1, list2 by pairing up equally-positioned pair in both the lists. The returned is truncated to the length of the shorter of the two input lists.

 Fae.zip([100, 200, 300], [1, 2, 3]) // [[1, 100], [2, 200], [3, 300]]

type

Zip