lapplym: Memoizing wrapper for lapply.

Description Usage Arguments Value See Also Examples

View source: R/VectorizeM.R

Description

Memoizing wrapper for lapply.

Usage

1
lapplym(X, FUN, ...)

Arguments

X

list or vector of inputs

FUN

function to apply

...

additional arguments passed to lapply

Value

list of results.

See Also

VectorizeM, vapplym, parLapplyLBm

Examples

1
2
3
fs <- function(x) { x <- x[[1]]; print(paste("see", x)); sin(x) }
# should only print "see" twice, not 6 times
lapplym(c(0, 1, 1, 0, 0, 1), fs)

WinVector/wrapr documentation built on Nov. 21, 2020, 8:31 p.m.