Skip to main content
Module

x/rambda/immutable.d.ts>zip

Faster and smaller alternative to Ramda
Go to Latest
function zip
import { zip } from "https://deno.land/x/rambda@v7.0.1/immutable.d.ts";

It will return a new array containing tuples of equally positions items from both x and y lists.

The returned list will be truncated to match the length of the shortest supplied list.

Parameters

x: readonly K[]
y: readonly V[]

Returns

readonly KeyValuePair<K, V>[]

Parameters

x: readonly K[]

Returns

<V>(y: readonly V[]) => readonly KeyValuePair<K, V>[]