Learn R Programming

chronicler (version 0.2.2)

bind_record: Evaluate a decorated function; used to chain multiple decorated functions.

Description

Evaluate a decorated function; used to chain multiple decorated functions.

Usage

bind_record(.c, .f, ...)

Value

A chronicle object.

Arguments

.c

A chronicle object.

.f

A chronicle function to apply to the returning value of .c.

...

Further parameters to pass to .f.

Examples

Run this code
r_sqrt <- record(sqrt)
r_exp <- record(exp)
3 |> r_sqrt() |> bind_record(r_exp)

Run the code above in your browser using DataLab