forget {kriens}R Documentation

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).

Author(s)

Matteo Provenzano
http://www.alephdue.com

See Also

compose

Examples

# 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)

[Package kriens version 0.1 Index]