Learn R Programming

tinsel (version 0.0.1)

decorators: Get Function Decorators or Original Function

Description

Get the decorators of a function or the original decoratee function from a decorated function object.

Usage

decorators(f)
original(f)

Arguments

f
A decorated function.

Examples

Run this code
source_decoratees(tinsel_example('attributes.R'))

# sourced from the 'attributes.R' example file
selector1

# get a list of decorators wrapping a function
decorators(selector1)

# get the original decoratee function of the
# decorated `selector1` function
original(selector1)

Run the code above in your browser using DataLab