Learn R Programming

kriens (version 0.1)

forget: Forgets the Continuation

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

forget(f)

Arguments

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

Value

a function of the form f(x).

See Also

compose

Examples

Run this code
# 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)

Run the code above in your browser using DataLab