forget: Forgets the Continuation

Description Usage Arguments Value Author(s) See Also Examples

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)

kriens documentation built on May 1, 2019, 10:50 p.m.

Related to forget in kriens...