Skip to contents

Evaluate a non-loud function on a loud value

Usage

flat_loudly(.l, .f, ...)

Arguments

.l

A loud value (a list of two elements)

.f

A non-loud function

...

Further parameters to pass to .f

Value

Returns the result of .f(.l$result)

Examples

loud_value(3) |> flat_loudly(sqrt)
#> [1] 1.732051