Skip to contents

Retrieve the length of a deflist object

Usage

# S3 method for deflist
length(x)

Arguments

x

A deflist object.

Value

The length of the deflist object.

Examples

square_fun <- function(i) i^2
square_deflist <- deflist(square_fun, len = 5)
stopifnot(length(square_deflist) == 5)