map2: Two-list map

Description Usage Arguments Value

Description

Apply a two-argument function to two lists. This can be used to implement vectorized versions of common functions.

Usage

1
map2(lsa, lsb, fn, ...)

Arguments

lsa

A function, with class fl, that operates as a functional list object

lsb

A function, with class fl, that operates as a functional list object. This needs to be the same length as lsa

fn

A function be applied to each of the scalars contained in the arguments of the functional list object

...

Additional arguments to fn

Value

A functional list of the same length as lsa and lsb, where each new element is equal to fn(x) of each scalar contained in ls


michaelquinn32/lambdaList documentation built on May 22, 2019, 9:52 p.m.