forget: Forgets the Continuation

Description Usage Arguments Value Author(s) See Also Examples

View source: R/forget.R

Description

This function takes a function of the form f(x, ret) and forgets the ret part returning a function of the form g(x).

Usage

1
forget(f)

Arguments

f

a function of the form f(x, ret).

Value

a function of the form f(x).

Author(s)

Matteo Provenzano
http://www.alephdue.com

See Also

compose

Examples

1
2
3
4
5
# forget the FUN part in lapply
to.list <- forget(lapply)

# returns the list of the natural numbers from 1 to 10
to.list(1:10)

matteoprovenzano/kriens-r documentation built on May 21, 2019, 12:59 p.m.