Learn R Programming

monads (version 0.0.0.9000)

listOf: A list where all elements are the same class.

Description

A list where all elements are the same class.

Usage

listOf(...)

Arguments

...

Elements to combine into a list. All elements must be the same type.

Examples

Run this code
x <- listOf(1L, 2L, 4:10)
double <- function(x) x * 2
x %>>% double()

x %>>% function(x) list(x, x)
x %>+% function(x) list(x, x)

Run the code above in your browser using DataLab