map: map combinator

Description Usage Arguments Value Examples

View source: R/functional.R

Description

map combinator

Usage

1
map(x, f)

Arguments

x

vector to which apply

f

function (or lambda expression) for mapping

Value

vector with applyed function

Examples

1
2
map(c(1, 2, 3, 4), (~ x^2))
# c(1, 4, 9, 16)

d0rj/pido documentation built on Dec. 19, 2021, 8 p.m.