Lazy curry; thanks, Jamie!

Share:

Description

Lazy curry; thanks, Jamie! <https://github.com/klutometis/R-functional/issues/1>

Usage

1
CurryL(FUN, ...)

Arguments

FUN

the function to be curried

...

the determining parameters

Examples

1
2
3
4
# day is not defined; thanks, Jamie Folson.
CurryL(function(...) match.call(),
       x=5,
       y=as.Date(day))(z=as.Date(day,"%Y"))