Learn R Programming

cards (version 0.3.0)

.purrr_list_flatten: A list_flatten()-like Function

Description

Function operates similarly to purrr::list_flatten(x, name_spec = "{inner}").

Usage

.purrr_list_flatten(x)

Value

a named list

Arguments

x

(named list)
a named list

Examples

Run this code
x <- list(a = 1, b = list(b1 = 2, b2 = 3), c = list(c1 = 4, c2 = list(c2a = 5)))

cards:::.purrr_list_flatten(x)

Run the code above in your browser using DataLab