flatMap: flatMap combinator

Description Usage Arguments Value Examples

View source: R/functional.R

Description

flatMap combinator

Usage

1
flatMap(x, f)

Arguments

x

list of vectors to which apply

f

function (or lambda expression) for mapping

Value

vector with applyed function

Examples

1
flatMap(list(c(1, 2, 3, 4), c(5, 6), c(7, 8, 9)), (~ x^2))

perfail-stud/Rstudfile documentation built on Dec. 22, 2021, 7:43 a.m.