f_loop_n: Repeatedly apply a function

Description Usage Arguments Value Source

View source: R/utils.R

Description

Repeatedly apply a function

Usage

1
f_loop_n(.x, .reps = 1, .f, ...)

Arguments

.x

input data

.reps

number of times to call the function

.f

function to call

...

arguments passed onto .f()

Value

result of calling .f(.x, ...) .rep times

Source

https://www.tjmahr.com/repeatedly-calling-a-function/


tjmahr/adventofcode21 documentation built on Jan. 8, 2022, 10:41 a.m.