Skip to contents

Like lapply, but return .x instead of the results of .f

Usage

walk(.x, .f, ...)

Arguments

.x

an atomic vector or a list

.f

a function

...

arguments passed on to .f

Value

.x

Examples

walk(month.name, print)
#> [1] "January"
#> [1] "February"
#> [1] "March"
#> [1] "April"
#> [1] "May"
#> [1] "June"
#> [1] "July"
#> [1] "August"
#> [1] "September"
#> [1] "October"
#> [1] "November"
#> [1] "December"