zipWith: Zip two lists together by a specific function.

View source: R/Data.List.r

zipWithR Documentation

Zip two lists together by a specific function.

Description

zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]

Usage

zipWith(f, xs, ys)

Arguments

f

function. A function that should take two arguments, iterating over each element of both lists.

xs

list. One list to zip.

ys

list. Another list to zip.


schnecki/rhaskell documentation built on Oct. 30, 2022, 10:23 a.m.