fmap_record: Evaluate a non-chronicle function on a chronicle object.

View source: R/chronicle.R

fmap_recordR Documentation

Evaluate a non-chronicle function on a chronicle object.

Description

Evaluate a non-chronicle function on a chronicle object.

Usage

fmap_record(.c, .f, ...)

Arguments

.c

A chronicle object.

.f

A non-chronicle function.

...

Further parameters to pass to '.f'.

Value

Returns the result of '.f(.c$value)' as a new chronicle object.

Examples

as_chronicle(3) |> fmap_record(sqrt)

chronicler documentation built on June 22, 2024, 11:30 a.m.